Sha256: 169fef44e39d25b2c1054c6a56955ec24e7a3a12731bde8b53b50e4c5dd9ba84

Contents?: true

Size: 536 Bytes

Versions: 44

Compression:

Stored size: 536 Bytes

Contents

shared_examples_for "session with status code support" do
  describe '#status_code' do
    it "should return response codes" do
      @session.visit('/with_simple_html')     
      @session.status_code.should == 200
    end
  end
end

shared_examples_for "session without status code support" do
  describe "#status_code" do
    before{ @session.visit('/with_simple_html') }
    it "should raise an error" do
      running {
        @session.status_code
      }.should raise_error(Capybara::NotSupportedByDriverError)
    end
  end
end

Version data entries

44 entries across 44 versions & 10 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.4/lib/capybara/spec/session/response_code.rb
capybara-1.1.4 lib/capybara/spec/session/response_code.rb
capybara-1.1.3 lib/capybara/spec/session/response_code.rb
capybara-2.0.0.beta2 lib/capybara/spec/session/response_code.rb
nimboids-capybara-1.1.2 lib/capybara/spec/session/response_code.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
capybara_minitest_spec-0.2.2 test_app/session/response_code.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/spec/session/response_code.rb
bbc-capybara-1.1.2 lib/capybara/spec/session/response_code.rb
capybara_minitest_spec-0.2.1.1 test_app/session/response_code.rb
capybara-1.1.2 lib/capybara/spec/session/response_code.rb
capybara_minitest_spec-0.2.1 test_app/session/response_code.rb