Sha256: 825a3b9d0db078a8dae8b7b87a235cb0369c477d054be142026e17af314db7c1

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

require 'spec_helper'

describe MWS::API::Subscriptions 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(:subscriptions) { MWS::API::Subscriptions.new(connection) }

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

  it 'should set the right :uri' do
    expect(subscriptions.uri).to eq('/Subscriptions/2013-07-01')
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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