transaction_test.rb 476 B

1234567891011121314151617
  1. require 'test_helper'
  2. class TransactionTest < Test::Unit::TestCase
  3. def setup
  4. super
  5. fake "orders/450789469/transactions/389404469", :method => :get, :body => load_fixture('transaction')
  6. end
  7. context "Transaction" do
  8. context "#find" do
  9. should "find a specific transaction" do
  10. transaction = ShopifyAPI::Transaction.find(389404469, :params => {:order_id => 450789469})
  11. assert_equal "409.94", transaction.amount
  12. end
  13. end
  14. end
  15. end