Sha256: 0bfd5e49d06e6ff9d5cc92eb618843e50e6a8c64f48b9bb9670ff8cc03aa8cd6

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

require 'test_helper'

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

      def test_list
        VCR.use_cassette('v30/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('v30/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/v30/rate_test.rb
regaliator-4.0.0 test/regaliator/v30/rate_test.rb