Sha256: d3130368c5eb89930913890e9edb6574f2031ded2c0dd135f032bcd119dead24

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 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(:product, id: 12345).url).to eq(
        store_uri.to_s + "products/12345.json?limit=250")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shydra-0.1.2 spec/shydra/resources/product_spec.rb
shydra-0.1.1 spec/shydra/resources/product_spec.rb
shydra-0.1.0 spec/shydra/resources/product_spec.rb