Sha256: 26cb65209a4ca5184c59d8425702efad70b73d0209c4ee6bc966bccd1774925d

Contents?: true

Size: 913 Bytes

Versions: 2

Compression:

Stored size: 913 Bytes

Contents

require 'test_helper'

module Regaliator
  module V15
    class RateTest < Minitest::Test
      def setup
        @config = Configuration.new.tap do |config|
          config.version    = API_VERSION
          config.api_key    = 'testing'
          config.secret_key = 'testing'
          config.host       = 'api.regalii.dev'
          config.use_ssl    = false
        end
      end

      def test_list
        VCR.use_cassette('v15/rate/list') do |cassette|
          response = Regaliator.new(@config).rate.list

          assert response.success?
          assert_equal extract_hsh(cassette), response.data
        end
      end

      def test_history
        VCR.use_cassette('v15/rate/history') do |cassette|
          response = Regaliator.new(@config).rate.history

          assert response.success?
          assert_equal extract_hsh(cassette), response.data
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
regaliator-4.0.1 test/regaliator/v15/rate_test.rb
regaliator-4.0.0 test/regaliator/v15/rate_test.rb