Sha256: 4e984d80d64eeded1f82b0894ab2d97e4c49f96b54d5ece68fd6db60127e68f9
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' describe Moysklad::Resources::EmbeddedEntityMetadataIndexed do let(:article_uuid) { 'dc410ce3-505a-11e4-90a2-8eca00496371' } before do stub_rest :EmbeddedEntityMetadata, :list, 0 end describe 'subresource' do let(:metadata_resource) { Moysklad::Resources::EmbeddedEntityMetadata.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
3 entries across 3 versions & 1 rubygems