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

Version Path
odata4-0.8.2 spec/odata4/service_registry_spec.rb
odata4-0.8.1 spec/odata4/service_registry_spec.rb
odata4-0.8.0 spec/odata4/service_registry_spec.rb
odata4-0.7.0 spec/odata4/service_registry_spec.rb