Sha256: c7d7b4b26431e43d2c3033626d18e4eb97d6ba517270072a89ba842792e05896
Contents?: true
Size: 574 Bytes
Versions: 12
Compression:
Stored size: 574 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 == '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
12 entries across 12 versions & 5 rubygems