I ran a Stack Overflow search for
[rspec][capybara] "with_text", expecting to find only results containing the phrase
with_text. However, the first result is expected css "title" with text in capybara, which does not contain the phrase
It does contain
with text, though.
Surely, as the quote marks are advertised as constraining to an exact match, it should match the exact string that's typed (case notwithstanding) and not mess around substituting spaces for underscores? Underscores are quite common in SO search terms…