Sha256: 0802fd1386cbf9b505b17d99cf754350df97897c1321c534dcbbd275c2cc7669
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' describe OData4::ServiceRegistry, vcr: {cassette_name: 'service_registry_specs'} do let(:subject) { OData4::ServiceRegistry } let(:sample_service) { OData4::Service.open('http://services.odata.org/V4/OData/OData.svc', name: 'demoService') } 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
4 entries across 4 versions & 1 rubygems