Sha256: 463c9e1946763d2fe740bb4e16b3ceb1a8716eb253227a8d21fe2f78633967f0
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require 'spec_helper' describe Capybara::Session do context 'with remote mechanize driver' do before(:each) do Capybara.app_host = "http://capybara-testapp.heroku.com" end after(:each) do Capybara.app_host = nil end before do @session = Capybara::Session.new(:mechanize, TestApp) end describe '#driver' do it "should be a mechanize driver" do @session.driver.should be_an_instance_of(Capybara::Driver::Mechanize) end end describe '#mode' do it "should remember the mode" do @session.mode.should == :mechanize end end describe '#click_link' do it "should use data-method if available" do pending "Needs to be implemented" do @session.visit "/with_html" @session.click_link "A link with data-method" @session.body.should == 'The requested object was deleted' end end end # Pending: Still 12 failing tests here: # it_should_behave_like "session" it_should_behave_like "session without javascript support" it_should_behave_like "session with headers support" it_should_behave_like "session with status code support" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara-mechanize-0.2.2 | spec/session/remote_mechanize_spec.rb |
capybara-mechanize-0.2.1 | spec/session/remote_mechanize_spec.rb |