Sha256: ce20ae174dc074587e7c282ef822740389ab8f8a5d72770afa03fddf1d1a49c9

Contents?: true

Size: 648 Bytes

Versions: 23

Compression:

Stored size: 648 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-5.0.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-4.2.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-4.2.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-4.1.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-4.0.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.4.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.4.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.4.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.6 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.5 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.3.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.2.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.1.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.1.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.1.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.0.5 spec/record/endpoint_misconfiguration_spec.rb
lhs-3.0.4 spec/record/endpoint_misconfiguration_spec.rb