Sha256: 6e57714e24a3ea63f070100bf46ec3b42a47c9d122971bb2d8eb399481826c34

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

RSpec.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

3 entries across 3 versions & 1 rubygems

Version Path
api_matchers-0.6.2 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.6.1 spec/api_matchers/http_status_code/base_spec.rb
api_matchers-0.6.0 spec/api_matchers/http_status_code/base_spec.rb