Sha256: 9321bdd432fbbba74e9c6dce441617568b8dc53085f03ee51400b47a57a0ddc5

Contents?: true

Size: 517 Bytes

Versions: 4

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

require 'integration_helper'
require 'mws/orders'

class TestErrors < IntegrationTest
  use 'Orders'

  def test_invalid_key
    clients.each do |client|
      assert_raises Peddler::Errors::InvalidAccessKeyId do
        client.aws_access_key_id = 'foo'
        client.get_order('bar')
      end
    end
  end

  def test_request_throttled
    clients.each do |client|
      assert_raises Peddler::Errors::RequestThrottled do
        client.get_order('foo')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-2.1.0 test/integration/test_errors.rb
peddler-2.0.4 test/integration/test_errors.rb
peddler-2.0.3 test/integration/test_errors.rb
peddler-2.0.0 test/integration/test_errors.rb