Sha256: e894813e44ed4a0fbf088cef6ebf15a62380b8fe39861bbfd71fe348113924d8

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

require 'spec_helper'

describe OData4::PropertyRegistry do
  let(:subject) { OData4::PropertyRegistry }

  it { expect(subject).to respond_to(:add) }
  it { expect(subject).to respond_to(:[]) }

  describe '#add' do
    before(:each) do
      subject.add('Edm.Guid', OData4::Properties::Guid)
    end

    it { expect(subject['Edm.Guid']).to eq(OData4::Properties::Guid) }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
odata4-0.9.1 spec/odata4/property_registry_spec.rb
odata4-0.9.0 spec/odata4/property_registry_spec.rb
odata4-0.8.2 spec/odata4/property_registry_spec.rb
odata4-0.8.1 spec/odata4/property_registry_spec.rb
odata4-0.8.0 spec/odata4/property_registry_spec.rb
odata4-0.7.0 spec/odata4/property_registry_spec.rb