Sha256: 9010e87b0273d5a2968fbd5484f8968397fd4eb95b41b238f0fed1c9703fd102

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require 'test_helper'

module Europe
  module Currency
    # CurrencyTest
    class ExchangeRatesTest < Minitest::Test
      include Benchmark

      def test_retrieval_exchange_rates
        rates = Europe::Currency::ExchangeRates.retrieve
        assert_equal rates[:date].to_s,
                     DateTime.now.strftime('%Y-%m-%d')
        assert rates[:rates].keys.include?(:GBP)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
europe-0.0.1 test/europe/currency/exchange_rates_test.rb