Sha256: 0a288360b5df4fb5894e44635885f4991da08eef3d84b1b175457df0f78c1e0d

Contents?: true

Size: 647 Bytes

Versions: 84

Compression:

Stored size: 647 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

84 entries across 84 versions & 1 rubygems

Version Path
lhs-14.6.5 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.6.4 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.6.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.6.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.6.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.6.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.5.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.4.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.3.4 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.3.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.3.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.3.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.3.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.2.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.1.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.1.0 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.0.3 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.0.2 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.0.1 spec/record/endpoint_misconfiguration_spec.rb
lhs-14.0.0 spec/record/endpoint_misconfiguration_spec.rb