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

Fix some rspec raise_error deprecation warnings

This commit is contained in:
Thomas Walpole 2015-08-21 17:46:05 -07:00
parent b4861f3c19
commit 60558466c0
3 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ Capybara::SpecHelper.spec "#fill_in" do
end
it "should throw an exception if a hash containing 'with' is not provided" do
expect {@session.fill_in 'Name', 'ignu'}.to raise_error
expect {@session.fill_in 'Name', 'ignu'}.to raise_error(RuntimeError, /with/)
end
it "should wait for asynchronous load", :requires => [:js] do

View file

@ -86,7 +86,7 @@ Capybara::SpecHelper.spec '#first' do
end
end
context "with Capybara.first_default_waiting", requires: [:js] do
context "with Capybara.wait_on_first_by_default", requires: [:js] do
before do
@session.visit('/with_js')
end

View file

@ -117,6 +117,6 @@ Capybara::SpecHelper.spec '#switch_to_window', requires: [:windows] do
@session.find(:css, '#openWindowWithTimeout').click
expect do
@session.switch_to_window { @session.title == 'Title of the first popup'}
end.not_to raise_error(Capybara::WindowError)
end.not_to raise_error
end
end