Sha256: c355e77fbe09fbb815d1bed70ad07700a54cbdeeddfb1056a1424bda39c64bb6
Contents?: true
Size: 705 Bytes
Versions: 18
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Frodo::ServiceRegistry, vcr: {cassette_name: 'service_registry_specs'} do let(:subject) { Frodo::ServiceRegistry } let(:sample_service) { Frodo::Service.new('http://services.odata.org/V4/OData/OData.svc', name: 'demoService', metadata_file: metadata_file) } let(:metadata_file) { 'spec/fixtures/files/metadata.xml' } it { expect(subject).to respond_to(:add) } it { expect(subject).to respond_to(:[]) } describe '#add' do before(:example) do subject.add(sample_service) end it { expect(subject['demoService']).to eq(sample_service) } it { expect(subject['http://services.odata.org/V4/OData/OData.svc']).to eq(sample_service) } end end
Version data entries
18 entries across 18 versions & 1 rubygems