Stub Capybara::ModalNotFound for Capybara < 2.4

* The modal API was introduced in Capybara 2.4, so older versions won't
  follow this code path.
This commit is contained in:
Matthew Horan 2014-07-09 22:40:17 -04:00
parent 8ba5ddf160
commit e49886d668
1 changed files with 4 additions and 0 deletions

View File

@ -618,6 +618,10 @@ describe Capybara::Webkit::Driver do
end
context "javascript dialog interaction" do
before do
stub_const('Capybara::ModalNotFound', Class.new(StandardError))
end
context "on an alert app" do
let(:driver) do
driver_for_app do