Sha256: 3d626552ba0fdbb989809dc6084ad450747a466c4de15d99f4185bef8fb9c06d

Contents?: true

Size: 571 Bytes

Versions: 37

Compression:

Stored size: 571 Bytes

Contents

shared_examples_for "session with headers support" do
  describe '#response_headers' do
    it "should return response headers" do
      @session.visit('/with_simple_html')
      @session.response_headers['Content-Type'].should =~ %r(text/html)
    end
  end
end

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

Version data entries

37 entries across 37 versions & 8 rubygems

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