Sha256: c400643a488d7febab56ad8f7277875014cba1110f098fb4a32fb7cf9c700134
Contents?: true
Size: 660 Bytes
Versions: 12
Compression:
Stored size: 660 Bytes
Contents
require 'rails_helper' describe LHS::Record do context 'misconfiguration of endpoints' do it 'fails trying to add ambiguous endpoints' do expect( lambda { class Record < LHS::Record endpoint '{+datastore}/v2/feedbacks' endpoint '{+datastore}/v2/reviews' end } ).to raise_error(/Ambiguous endpoints/) expect( lambda { class Record < LHS::Record endpoint '{+datastore}/v2/{campaign_id}/feedbacks' endpoint '{+datastore}/v2/{campaign_id}/reviews' end } ).to raise_error(/Ambiguous endpoints/) end end end
Version data entries
12 entries across 12 versions & 1 rubygems