Sha256: 8b1c4730e9aac8585c19d1f89900b4b0a700733cb191969bb29e38e98caea198

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

#test/client_test.rb
require_relative 'test_helper'

class ConfigurationTest < Minitest::Test
  def test_defaults
    config = MTG::Configuration.new

    assert_equal 1, config.api_version
  end
  
  def test_reset
    MTG.configure do |config|
      config.api_version = 2
    end
    
    MTG.reset
    
    assert_equal 1, MTG.configuration.api_version
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mtg_sdk-3.2.0 test/configuration_test.rb
mtg_sdk-3.1.0 test/configuration_test.rb