Sha256: 8a9dc96dd05d759d04443018fc9e74e71d15454c761e2129743dd23ee73a5cf2

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

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

  describe "#matches?" do
    it "should raise Not Implement Exception" do
      expect { subject.matches?('application/xml') }.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/headers/base_spec.rb
api_matchers-0.6.1 spec/api_matchers/headers/base_spec.rb
api_matchers-0.6.0 spec/api_matchers/headers/base_spec.rb