Sha256: 4b2f3343b7737f7f57d4d116f2ed618b07035d02c82f73abebb6bebd7bc2d11b

Contents?: true

Size: 491 Bytes

Versions: 19

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TenderTransactionTest < Test::Unit::TestCase
  def setup
    super
    fake "tender_transactions", method: :get, body: load_fixture('tender_transactions')
  end

  context "Tender Transaction" do
    should 'return a list of transactions' do
      tender_transactions = ShopifyAPI::TenderTransaction.all
      assert_equal 3, tender_transactions.length
      assert_equal [1, 2, 3], tender_transactions.map(&:id)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify_api-9.2.0 test/tender_transaction_test.rb
shopify_api-9.1.0 test/tender_transaction_test.rb
shopify_api-9.0.4 test/tender_transaction_test.rb
shopify_api-9.0.3 test/tender_transaction_test.rb
shopify_api-9.0.2 test/tender_transaction_test.rb
shopify_api-9.0.1 test/tender_transaction_test.rb
shopify_api-9.0.0 test/tender_transaction_test.rb
shopify_api-8.1.0 test/tender_transaction_test.rb
shopify_api-8.0.0 test/tender_transaction_test.rb
shopify_api-7.1.0 test/tender_transaction_test.rb
shopify_api-7.0.2 test/tender_transaction_test.rb
shopify_api-7.0.1 test/tender_transaction_test.rb
shopify_api-7.0.0 test/tender_transaction_test.rb
shopify_api-6.0.0 test/tender_transaction_test.rb
shopify_api-5.2.4 test/tender_transaction_test.rb
shopify_api-5.2.3 test/tender_transaction_test.rb
shopify_api-5.2.2 test/tender_transaction_test.rb
shopify_api-5.2.1 test/tender_transaction_test.rb
shopify_api-5.2.0 test/tender_transaction_test.rb