Sha256: 5fb0c7b188b807a431fbbf29aaf2bdfadcfb3baffcbd2d5b1554fe21cb0de167

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require 'spec_helper'

describe AmoCRM::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) { AmoCRM::Resources::EmbeddedEntityMetadata.indexed client: client }
    subject { metadata_resource.subresource_by_name :GoodFolder }

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

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 spec/lib/amocrm/resources/embedded_entity_metadata_indexed_spec.rb