From fc0d4c412a40bc946e9dd8ce2e1506a992899cd2 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Tue, 3 Oct 2017 19:19:32 -0700 Subject: [PATCH] fix test that wasn't browser neutral --- lib/capybara/spec/session/within_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/spec/session/within_spec.rb b/lib/capybara/spec/session/within_spec.rb index 8078d641..d3de2281 100644 --- a/lib/capybara/spec/session/within_spec.rb +++ b/lib/capybara/spec/session/within_spec.rb @@ -101,7 +101,7 @@ Capybara::SpecHelper.spec '#within' do expect do @session.within(".//div[@id='doesnotexist']") do end - end.to raise_error(Capybara::ElementNotFound, %Q{Unable to find visible xpath ".//div[@id='doesnotexist']" within #}) + end.to raise_error(Capybara::ElementNotFound) end.to_not change { @session.has_xpath?(".//div[@id='another_foo']") }.from(false) end end.to_not change { @session.has_xpath?(".//div[@id='another_foo']") }.from(true)