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

fix Base#dismiss_modal definition

This commit is contained in:
Thomas Walpole 2014-07-01 00:24:12 -07:00
parent c589f6a814
commit d4dcd3b1d1
3 changed files with 2 additions and 3 deletions

View file

@ -115,7 +115,7 @@ class Capybara::Driver::Base
# @return [String] the message shown in the modal
# @raise [Capybara::ModalNotFound] if modal dialog hasn't been found
#
def dismiss_modal(type, &blk)
def dismiss_modal(type, options={}, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#dismiss_modal'
end

View file

@ -82,7 +82,7 @@ module Capybara
#
# This method does not:
#
# * accept modal dialogs if they are present
# * accept modal dialogs if they are present (Selenium driver now does, others may not)
# * clear browser cache/HTML 5 local storage/IndexedDB/Web SQL database/etc.
# * modify state of the driver/underlying browser in any other way
#

View file

@ -23,7 +23,6 @@ Capybara::SpecHelper.spec '#accept_alert', :requires => [:modals] do
@session.click_link('Open alert')
end
end.to raise_error(Capybara::ModalNotFound)
# @session.accept_alert {} # clear the alert so browser continues to function
end
it "should return the message presented" do