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