Sha256: 484a5cd0313b091741d52614086873ec587d95782072bdb631b641ea1a57675d
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
require 'spec_helper' describe Shydra::Resources::Product do before do ShopifyAPI::Base.stub(:site).and_return(URI("https://xxxx:yyyy@cronin.myshopify.com/admin/")) end let(:store_uri){ URI("https://xxxx:yyyy@cronin.myshopify.com/admin/")} it "creates a product request" do expect(Shydra::Resources::Product.new(id: 12345).url).to eq( store_uri.to_s + "products/12345.json?limit=250") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shydra-0.4.2 | spec/shydra/resources/product_spec.rb |