Sha256: 1b6a4a7313c380f3d78e29cbb2eaeaf64e5a1333394cccabbb7a30d5a9da1324

Contents?: true

Size: 431 Bytes

Versions: 12

Compression:

Stored size: 431 Bytes

Contents

require 'integration_helper'
require 'mws/orders'

class OrdersTest < IntegrationTest
  def a_year_ago
    Date.today - 365
  end

  def test_lists_orders
    clients.each do |client|
      res = client.list_orders(created_after: a_year_ago)
      refute_empty res.parse
    end
  end

  def test_gets_service_status
    clients.each do |client|
      res = client.get_service_status
      refute_empty res.parse
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
peddler-0.8.0 test/integration/test_orders.rb
peddler-0.7.11 test/integration/test_orders.rb
peddler-0.7.10 test/integration/test_orders.rb
peddler-0.7.9 test/integration/test_orders.rb
peddler-0.7.8 test/integration/test_orders.rb
peddler-0.7.7 test/integration/test_orders.rb
peddler-0.7.6 test/integration/test_orders.rb
peddler-0.7.5 test/integration/test_orders.rb
peddler-0.7.3 test/integration/test_orders.rb
peddler-0.7.2 test/integration/test_orders.rb
peddler-0.7.1 test/integration/test_orders.rb
peddler-0.7.0 test/integration/test_orders.rb