abandoned_checkouts_test.rb 332 B

123456789
  1. require 'test_helper'
  2. class AbandonedCheckoutsTest < Test::Unit::TestCase
  3. test "get all should get all orders" do
  4. fake 'checkouts', :method => :get, :status => 200, :body => load_fixture('checkouts')
  5. abandoned_checkout = ShopifyAPI::AbandonedCheckout.all
  6. assert_equal 450789469, abandoned_checkout.first.id
  7. end
  8. end