Sha256: 6e9b4c4163eb4c7ca4bd4cac620b99fceeb557d6ed74c4cd0f79b9c702383b59

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

require 'nokogiri'

shared_examples_for "session without headers support" do
  describe "#evaluate_script" 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

6 entries across 6 versions & 3 rubygems

Version Path
capybara-0.3.6 spec/session_without_headers_support_spec.rb
h13ronim-capybara-0.3.0.1 spec/session_without_headers_support_spec.rb
capybara-0.3.5 spec/session_without_headers_support_spec.rb
bjeanes-capybara-0.3.2 spec/session_without_headers_support_spec.rb
bjeanes-capybara-0.3.1 spec/session_without_headers_support_spec.rb
capybara-0.3.0 spec/session_without_headers_support_spec.rb