Sha256: 49c1b772a4b410ec4db2e77cb4ef9067417cfd2c70d6d22b6f19a1d549ebaadb
Contents?: true
Size: 611 Bytes
Versions: 10
Compression:
Stored size: 611 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_post("/v2/assets.json").with(:body => {"id"=>true}). 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).to be_an(Array) expect(subject.prices.first).to be_an(ACTV::AssetPrice) end end end
Version data entries
10 entries across 10 versions & 1 rubygems