Sha256: d1c0f7dee0a4a4830769285e0b553db99922addf4aadc2eeefcbae231bafedc6

Contents?: true

Size: 657 Bytes

Versions: 23

Compression:

Stored size: 657 Bytes

Contents

require 'rails_helper'

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
lhs-15.5.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.4.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.4.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.4.0.pre.hasone.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.3.pre.fixoptions.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.1.pre.fixlhc.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.3.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.5 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.4 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.3.pre.favorites.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.2.pre.favorites.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.2.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.1.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-15.1.0 spec/record/endpoint_misconfiguration_spec.rb