Sha256: c400643a488d7febab56ad8f7277875014cba1110f098fb4a32fb7cf9c700134

Contents?: true

Size: 660 Bytes

Versions: 12

Compression:

Stored size: 660 Bytes

Contents

require 'rails_helper'

describe LHS::Record do
  context 'misconfiguration of endpoints' do
    it 'fails trying to add ambiguous endpoints' do
      expect(
        lambda {
          class Record < LHS::Record
            endpoint '{+datastore}/v2/feedbacks'
            endpoint '{+datastore}/v2/reviews'
          end
        }
      ).to raise_error(/Ambiguous endpoints/)

      expect(
        lambda {
          class Record < LHS::Record
            endpoint '{+datastore}/v2/{campaign_id}/feedbacks'
            endpoint '{+datastore}/v2/{campaign_id}/reviews'
          end
        }
      ).to raise_error(/Ambiguous endpoints/)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lhs-16.1.5 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.1.4 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.1.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.1.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.1.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.1.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.0.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-16.0.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.7.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.6.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.6.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.5.1 spec/record/endpoint_misconfiguration_spec.rb