Permalink
Browse files

Update Capybara integration specs for Capybara 2.0

  • Loading branch information...
1 parent b163d73 commit dc5e0325c50688aecd67f8df4f982b0a91108d46 @mhoran mhoran committed Nov 17, 2012
Showing with 6 additions and 9 deletions.
  1. +6 −9 spec/integration/session_spec.rb
@@ -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 @@
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

0 comments on commit dc5e032

Please sign in to comment.