Sha256: 90dbc9e4049fd2ac1663d7ef7f0387c8dd6a4225f620f26d49ae2cf9db2f60fc

Contents?: true

Size: 653 Bytes

Versions: 25

Compression:

Stored size: 653 Bytes

Contents

require 'rails_helper'

describe LHS::Service do

  context 'misconfiguration of endpoints' do

    it 'fails trying to add clashing endpoints' do
      expect(
        ->{
          class SomeService < LHS::Service
            endpoint ':datastore/v2/feedbacks'
            endpoint ':datastore/v2/reviews'
          end
        }
      ).to raise_error('Clashing endpoints.')
      expect(
        ->{
          class SomeService < LHS::Service
            endpoint ':datastore/v2/:campaign_id/feedbacks'
            endpoint ':datastore/v2/:campaign_id/reviews'
          end
        }
      ).to raise_error('Clashing endpoints.')
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lhs-2.2.2 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.6.1 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.2.1 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.2.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.6.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.1.1 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.1.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.5 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.4 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.3 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.2 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.1 spec/service/endpoint_misconfiguration_spec.rb
lhs-2.0.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.5.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.4.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.3.1 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.3.0 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.2.3 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.2.2 spec/service/endpoint_misconfiguration_spec.rb
lhs-1.2.1 spec/service/endpoint_misconfiguration_spec.rb