Sha256: e92f951c54c73bf8f11216f8d4f39c9c3f51be0c3d4e027f0cfba453b5118467
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
require 'test_helper' module Regaliator module V15 class ClientTest < Minitest::Test def setup @config = Configuration.new @subject = Client.new(@config) end def test_versioned_client_inherits_from_client assert_operator V15::Client, :<, Regaliator::Client end %i(account bill biller rate transaction).each do |endpoint| define_method("test_#{endpoint}_method_returns_#{endpoint}_instance") do klass = "::Regaliator::V15::#{endpoint.capitalize}" assert_instance_of Kernel.const_get(klass), @subject.send(endpoint) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
regaliator-4.0.1 | test/regaliator/v15/client_test.rb |
regaliator-4.0.0 | test/regaliator/v15/client_test.rb |