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

Version Path
frodo-0.12.8 spec/frodo/service_registry_spec.rb
frodo-0.12.7 spec/frodo/service_registry_spec.rb
frodo-0.12.6 spec/frodo/service_registry_spec.rb
frodo-0.12.5 spec/frodo/service_registry_spec.rb
frodo-0.12.4 spec/frodo/service_registry_spec.rb
frodo-0.12.2 spec/frodo/service_registry_spec.rb
frodo-0.12.1 spec/frodo/service_registry_spec.rb
frodo-0.12.0 spec/frodo/service_registry_spec.rb
frodo-0.11.0 spec/frodo/service_registry_spec.rb
frodo-0.10.8 spec/frodo/service_registry_spec.rb
frodo-0.10.7 spec/frodo/service_registry_spec.rb
frodo-0.10.6 spec/frodo/service_registry_spec.rb
frodo-0.10.5 spec/frodo/service_registry_spec.rb
frodo-0.10.4 spec/frodo/service_registry_spec.rb
frodo-0.10.3 spec/frodo/service_registry_spec.rb
frodo-0.10.2 spec/frodo/service_registry_spec.rb
frodo-0.10.1 spec/frodo/service_registry_spec.rb
frodo-0.10.0 spec/frodo/service_registry_spec.rb