Sha256: 06b44bfafaf40b46e199e6e1bf677e17c814e7148885af8e7bda5327db96e988

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

require 'test_helper'

module Regaliator
  module V30
    class ClientTest < Minitest::Test
      def setup
        @config  = Configuration.new
        @subject = Client.new(@config)
      end

      def test_versioned_client_inherits_from_client
        assert_operator V30::Client, :<, Regaliator::Client
      end

      %i(account bill biller rate transaction).each do |endpoint|
        define_method("test_#{endpoint}_method_returns_#{endpoint}_instance") do
          klass = "::Regaliator::V30::#{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/v30/client_test.rb
regaliator-4.0.0 test/regaliator/v30/client_test.rb