Sha256: ebca8ccf49b2f5fd7806038fbc186e325a1c859dffb46ecf8f291597adfd1709
Contents?: true
Size: 1.75 KB
Versions: 2
Compression:
Stored size: 1.75 KB
Contents
require 'test_helper' module Regaliator module V15 class BillTest < 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_index VCR.use_cassette('v15/bill/index') do |cassette| response = Regaliator.new(@config).bill.index assert response.success? assert_equal extract_hsh(cassette), response.data end end def test_consult VCR.use_cassette('v15/bill/consult') do |cassette| response = Regaliator.new(@config).bill.consult( biller_id: 14, account_number: '6463060086', user_id: 12981 ) assert response.success? assert_equal extract_hsh(cassette), response.data end end def test_pay VCR.use_cassette('v15/bill/pay') do |cassette| response = Regaliator.new(@config).bill.pay( biller_id: 14, account_number: '6463060086', user_id: 12981, amount: 99, currency: 'DOP' ) assert response.success? assert_equal extract_hsh(cassette), response.data end end def test_check VCR.use_cassette('v15/bill/check') do |cassette| response = Regaliator.new(@config).bill.check( biller_id: 9, account_number: '6463060086', amount: 50 ) 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/bill_test.rb |
regaliator-4.0.0 | test/regaliator/v15/bill_test.rb |