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