Sha256: 530e59a6c71078ae772b8782a9202e482ad2640b745310e42b768150a0aee44a

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

require 'test_helper'

module Regaliator
  class ClientTest < Minitest::Test
    def setup
      @config = Configuration.new.tap do |config|
        config.host       = 'https://api.regalii.dev'
        config.api_key    = 'api_key'
        config.secret_key = 'secret_key'
      end
    end

    def test_constructor_accepts_a_configuration
      subject = Client.new(@config)

      assert_same @config, subject.config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
regaliator-4.0.1 test/regaliator/client_test.rb
regaliator-4.0.0 test/regaliator/client_test.rb