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:
parent
542ff66cd4
commit
60ed514509
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue