From 60ed514509122822f01e382e9c3eae0636bcca3a Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Tue, 3 Jan 2012 09:43:32 +0100 Subject: [PATCH] that space is throwing off the regexp somehow --- spec/rspec/matchers_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/rspec/matchers_spec.rb b/spec/rspec/matchers_spec.rb index b3f4e016..b52606fe 100644 --- a/spec/rspec/matchers_spec.rb +++ b/spec/rspec/matchers_spec.rb @@ -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