mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Update Capybara integration specs for Capybara 2.0
This commit is contained in:
parent
b163d73c14
commit
dc5e0325c5
1 changed files with 6 additions and 9 deletions
|
@ -3,6 +3,12 @@
|
|||
require 'spec_helper'
|
||||
require 'capybara/webkit'
|
||||
|
||||
module TestSessions
|
||||
Webkit = Capybara::Session.new(:reusable_webkit, TestApp)
|
||||
end
|
||||
|
||||
Capybara::SpecHelper.run_specs TestSessions::Webkit, "webkit"
|
||||
|
||||
describe Capybara::Session do
|
||||
subject { Capybara::Session.new(:reusable_webkit, @app) }
|
||||
after { subject.reset! }
|
||||
|
@ -126,12 +132,3 @@ describe Capybara::Session do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe Capybara::Session, "with TestApp" do
|
||||
before do
|
||||
@session = Capybara::Session.new(:reusable_webkit, TestApp)
|
||||
end
|
||||
|
||||
it_should_behave_like "session"
|
||||
it_should_behave_like "session with javascript support"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue