Sha256: bcf460eb7eb39d16c16b29c45b3fbf4db563a1b3c4eeedc82bec19f684baa1a8

Contents?: true

Size: 494 Bytes

Versions: 9

Compression:

Stored size: 494 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

9 entries across 9 versions & 2 rubygems

Version Path
shopify_api-9.5.2 test/tender_transaction_test.rb
ruby_shopify_api-1.2.0 test/tender_transaction_test.rb
ruby_shopify_api-1.1.0 test/tender_transaction_test.rb
ruby_shopify_api-1.0.0 test/tender_transaction_test.rb
shopify_api-9.5.1 test/tender_transaction_test.rb
shopify_api-9.5 test/tender_transaction_test.rb
shopify_api-9.4.1 test/tender_transaction_test.rb
shopify_api-9.4.0 test/tender_transaction_test.rb
shopify_api-9.3.0 test/tender_transaction_test.rb