Sha256: e9b535601c4be1dd06b38d522055fb430d4c33c1e36e7840c515533f56a7e9ee
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 Bytes
Contents
require 'spec_helper' describe AmoCRM::Entities::AttributeMetadata do let(:metadata_resource) { AmoCRM::Resources::EmbeddedEntityMetadata.indexed client: client } let(:subresource) { metadata_resource.subresource_by_name :GoodFolder } let(:attribute_metadata) { subresource.items.first } before do stub_rest :EmbeddedEntityMetadata, :list, 0 stub_rest :CustomEntityMetadata, :list, 0 end context do subject { attribute_metadata.dictionatyMetadata universe } it do expect(subject).to be_a AmoCRM::Entities::CustomEntityMetadata expect(subject.uuid).to eq attribute_metadata.dictionaryMetadataUuid end end context do subject { attribute_metadata.entityMetadata universe } it do expect(subject).to be_a AmoCRM::Entities::EmbeddedEntityMetadata expect(subject.uuid).to eq attribute_metadata.entityMetadataUuid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amo_crm-0.2.2 | spec/lib/amocrm/entities/attribute_metadata_spec.rb |