Sha256: 784a632eeda14dd76c9c37fec3d7fdc8ba7f906cead83f92c7d85f984b514ab1

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'

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

9 entries across 9 versions & 1 rubygems

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