Sha256: 0b226c6acd20368139e72c91c2a998ce064ac41560a20150eec64707fb29d902
Contents?: true
Size: 498 Bytes
Versions: 9
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TransactionTest < Test::Unit::TestCase def setup super 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
9 entries across 9 versions & 2 rubygems