Sha256: 97398ce0dd5dc4807fec264638fc4acac321fe2d3a413de112ce9d34b425e0b4
Contents?: true
Size: 693 Bytes
Versions: 23
Compression:
Stored size: 693 Bytes
Contents
require 'spec_helper.rb' require 'stitches/spec' describe "be_gone" do it "passes the test if the http status was 410" do rspec_api_documentation_context = double("a test using rspec_api_documentation", status: 410) expect(rspec_api_documentation_context).to be_gone end it "fails the test if the http status was not 401" do rspec_api_documentation_context = double("a test using rspec_api_documentation", status: 200) begin expect(rspec_api_documentation_context).to be_gone fail "Expected the matcher to fail" rescue RSpec::Expectations::ExpectationNotMetError => e expect(e.message).to match(/expected http status.*410.*200/i) end end end
Version data entries
23 entries across 23 versions & 1 rubygems