require 'test_helper' module Regaliator module V30 class BillerTest < 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_credentials VCR.use_cassette('v30/biller/credentials') do |cassette| response = Regaliator.new(@config).biller.credentials assert response.success? assert_equal extract_hsh(cassette), response.data end end def test_list_topups VCR.use_cassette('v30/biller/topups') do |cassette| response = Regaliator.new(@config).biller.topups assert response.success? assert_equal extract_hsh(cassette), response.data end end def test_list_utilities VCR.use_cassette('v30/biller/utilities') do |cassette| response = Regaliator.new(@config).biller.utilities assert response.success? assert_equal extract_hsh(cassette), response.data end end end end end