Sha256: e58f139f1bb7a1f920ef73495990c8656154e142b2240318271c3023df2a7d85

Contents?: true

Size: 541 Bytes

Versions: 15

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

require 'gumboot/shared_examples/api_constraints'

require 'api_constraints'

RSpec.describe APIConstraints do
  let(:matching_request) do
    headers = { 'Accept' => 'application/vnd.aaf.example.v1+json' }
    instance_double(ActionDispatch::Request, headers: headers)
  end
  let(:non_matching_request) do
    headers = { 'Accept' => 'application/vnd.aaf.example.v2+json' }
    instance_double(ActionDispatch::Request, headers: headers)
  end

  include_examples 'API constraints'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
aaf-gumboot-2.6.3 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.6.2 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.6.1 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.6.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.5.1 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.5.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.4.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.2.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.1.4 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.1.3 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.1.1 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.1.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-2.0.1 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-1.2.0 spec/gumboot/api_constraints_spec.rb
aaf-gumboot-1.1.0 spec/gumboot/api_constraints_spec.rb