transaction_test.rb 466 B

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