1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

that space is throwing off the regexp somehow

This commit is contained in:
Jonas Nicklas 2012-01-03 09:43:32 +01:00
parent 542ff66cd4
commit 60ed514509

View file

@ -211,8 +211,8 @@ describe Capybara::RSpecMatchers do
it "includes text in error message" do
expect do
page.should have_selector("//h1", :text => 'wrong text')
end.to raise_error(%r(expected xpath "//h1" with text "wrong text" to return something))
page.should have_selector("//h1", :text => 'wrongtext')
end.to raise_error(%r(expected xpath "//h1" with text "wrongtext" to return something))
end
it "fails with the selector's failure_message if set" do