Sha256: aeda61043edd50946dc9237b0bc50f1a4c6d4040cb79891722f2a139b4fd8b8a

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'

describe Moysklad::Resources::MetadataIndexed do

  let(:article_uuid) { 'dc410ce3-505a-11e4-90a2-8eca00496371' }

  before do
    stub_rest :Metadata, :list, 0
  end

  describe 'subresource' do
    let(:metadata_resource) { Moysklad::Resources::Metadata.indexed client: client }
    subject { metadata_resource.subresource_by_name :GoodFolder }

    it { expect(subject).to be_a Moysklad::Resources::Subresource }
    it { expect(subject.items.first).to be_a Moysklad::Entities::AttributeMetadata }

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moysklad-0.1.5 spec/lib/moysklad/resources/metadata_indexed_spec.rb
moysklad-0.1.4 spec/lib/moysklad/resources/metadata_indexed_spec.rb
moysklad-0.1.3 spec/lib/moysklad/resources/metadata_indexed_spec.rb
moysklad-0.1.2 spec/lib/moysklad/resources/metadata_indexed_spec.rb
moysklad-0.1.1 spec/lib/moysklad/resources/metadata_indexed_spec.rb