Sha256: aaa7914c74c523278998a481a3bab96042a9e5b72b6669cbd3d64821d657f2c3

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

describe MWS::API::Products do

  let(:connection) {MWS::Connection.new({
    aws_access_key_id: "access key",
    aws_secret_access_key: "secret key",
    seller_id: "seller id"
  })}

  let(:orders) {MWS::API::Products.new(connection)}

  it "should inheritance from MWS::API::Base" do
    MWS::API::Products.superclass.should eq(MWS::API::Base)
  end

  it "should set the right :uri" do
    orders.uri.should eq("/Products/2011-10-01")
  end

  it "should set the right :version" do
    orders.version.should eq("2011-10-01")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mws-rb-0.0.1 spec/mws-rb/api/products_spec.rb