Sha256: 78721c166b61f0c5247f6ba3afdd49a61b4ae42b8de89e7c3961283662aa4ae2

Contents?: true

Size: 574 Bytes

Versions: 26

Compression:

Stored size: 574 Bytes

Contents

require 'spec_helper'

describe ACTV::AssetComponent do

  let(:asset_guid) { "6d92a2db-7ea5-4dfb-90e7-2b7d4dc839ae" }
  subject { ACTV::AssetComponent.new asset_guid: asset_guid }

  describe "#prices" do
    before(:each) do
      stub_request(:post, "http://api.amp.active.com/v2/assets.json").
        to_return(body: fixture("valid_component_asset.json"), headers: { content_type: "application/json; charset=utf-8" })
    end

    it 'returns the prices associated with the component' do
      expect(subject.prices.first).to be_an(ACTV::AssetPrice)
    end
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
actv-2.10.9 spec/actv/asset_component_spec.rb
actv-2.10.8 spec/actv/asset_component_spec.rb
actv-2.10.7 spec/actv/asset_component_spec.rb
actv-2.10.6 spec/actv/asset_component_spec.rb
actv-2.10.5 spec/actv/asset_component_spec.rb
actv-2.10.4 spec/actv/asset_component_spec.rb
actv-2.10.3 spec/actv/asset_component_spec.rb
actv-2.10.2 spec/actv/asset_component_spec.rb
actv-2.10.1 spec/actv/asset_component_spec.rb
actv-2.10.0 spec/actv/asset_component_spec.rb
actv-2.9.2 spec/actv/asset_component_spec.rb
actv-2.9.1 spec/actv/asset_component_spec.rb
actv-2.9.0 spec/actv/asset_component_spec.rb
actv-2.8.2 spec/actv/asset_component_spec.rb
actv-2.8.1 spec/actv/asset_component_spec.rb
actv-2.7.0 spec/actv/asset_component_spec.rb
actv-2.6.0 spec/actv/asset_component_spec.rb
actv-2.5.2 spec/actv/asset_component_spec.rb
actv-2.5.1 spec/actv/asset_component_spec.rb
actv-2.5.0 spec/actv/asset_component_spec.rb