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