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
1 changed files with 2 additions and 2 deletions

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