Sha256: 1940ffaf7aa972c7e3f78aadafe428d3cc57108506eb19cf92191e51d2c4d081

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

require 'spec_helper'

describe MWS::API::Orders do
  let(:connection) do
    MWS::Connection.new(aws_access_key_id: 'access key',
                        aws_secret_access_key: 'secret key',
                        seller_id: 'seller id',
                        mws_auth_token: 'auth token')
  end

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

  it 'should inheritance from MWS::API::Base' do
    expect(MWS::API::Orders.superclass).to eq(MWS::API::Base)
  end

  it 'should set the right :uri' do
    expect(orders.uri).to eq('/Orders/2013-09-01')
  end

  it 'should set the right :version' do
    expect(orders.version).to eq('2013-09-01')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mws_rb-0.0.6 spec/mws-rb/api/orders_spec.rb