Sha256: 8f8da5f2c67d008eaaf8ebd7956af823ac4d2bca45e57d85970d462a8c8d2029

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

describe APIMatchers::HTTPStatusCode::Base do
  let(:setup) { OpenStruct.new }
  subject { APIMatchers::HTTPStatusCode::Base.new(setup) }

  describe "#matches?" do
    it "should raise Not Implement Exception" do
      expect { subject.matches?(302) }.to raise_error(NotImplementedError, "not implemented on #{subject}")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
api_matchers-0.5.1 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.5.0 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.4.0 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.3.0 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.2.0 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.1.1 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.1.0 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.0.2 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.0.1 spec/api_matchers/http_status_code/base_spec.rb