Sha256: dd9bee05bd885a73a92d4628dfc5a8c3508ba3a4abb3a4a953a42d8cfc2a5086

Contents?: true

Size: 631 Bytes

Versions: 19

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'
class CurrencyTest < Test::Unit::TestCase
  def setup
    super
    fake "currencies", method: :get, body: load_fixture('currencies')
  end

  context "Currency" do
    should 'return a list of enabled currencies' do
      currencies = ShopifyAPI::Currency.all
      assert_equal 4, currencies.count
      assert_equal %w(AUD EUR GBP HKD), currencies.map(&:currency)
      assert_equal [true, true, true, false], currencies.map(&:enabled)
      currencies.each do |currency|
        assert_equal "2018-10-03T14:44:08-04:00", currency.rate_updated_at
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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