Rspec and Capybara: how to use regex or stop caring about whitespaces
Nov 25, 2025 · 1 min read · I recently updated from Slim template to ERB to use Herb (Thanks Marco). I had to update a test that was very strict on the format. I realized that Capybara::Node::Simple doesn’t provide a selector for regex. The page object doesn’t have a match? met...
Join discussion