Sha256: 84691300f699b6f83e7a02f6c5fc99494fe04123e74bfe32640d92ad93dd823d

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

require 'test_helper'

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

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

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