Sha256: 8aa1d85c70abef0ba866d483ef0077f0853e1933c1cc68ba82b2676a0b8719f2

Contents?: true

Size: 466 Bytes

Versions: 29

Compression:

Stored size: 466 Bytes

Contents

require 'test_helper'

class TransactionTest < Test::Unit::TestCase
  def setup
    fake "orders/450789469/transactions/389404469", :method => :get, :body => load_fixture('transaction')
  end

  context "Transaction" do
    context "#find" do
      should "find a specific transaction" do
        transaction = ShopifyAPI::Transaction.find(389404469, :params => {:order_id => 450789469})
        assert_equal "409.94", transaction.amount
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shopify_api-4.3.5 test/transaction_test.rb
shopify_api-4.3.4 test/transaction_test.rb
shopify_api-4.3.3 test/transaction_test.rb
shopify_api-4.3.2 test/transaction_test.rb
shopify_api-4.3.1 test/transaction_test.rb
shopify_api-4.3.0 test/transaction_test.rb
shopify_api-4.2.2 test/transaction_test.rb
shopify_api-4.2.1 test/transaction_test.rb
shopify_api-4.2.0 test/transaction_test.rb
shopify_api-4.1.1 test/transaction_test.rb
shopify_api-4.1.0 test/transaction_test.rb
shopify_api-4.0.7 test/transaction_test.rb
shopify_api-4.0.6 test/transaction_test.rb
shopify_api-4.0.5 test/transaction_test.rb
shopify_api-4.0.4 test/transaction_test.rb
shopify_api-4.0.3 test/transaction_test.rb
shopify_api-4.0.2 test/transaction_test.rb
shopify_api-4.0.1 test/transaction_test.rb
shopify_api-4.0.0 test/transaction_test.rb
shopify_api-3.2.7 test/transaction_test.rb