tender_transaction_test.rb 494 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. require 'test_helper'
  3. class TenderTransactionTest < Test::Unit::TestCase
  4. def setup
  5. super
  6. fake("tender_transactions", method: :get, body: load_fixture('tender_transactions'))
  7. end
  8. context "Tender Transaction" do
  9. should 'return a list of transactions' do
  10. tender_transactions = ShopifyAPI::TenderTransaction.all
  11. assert_equal(3, tender_transactions.length)
  12. assert_equal([1, 2, 3], tender_transactions.map(&:id))
  13. end
  14. end
  15. end