Sha256: 62dcde6b660e0ef0efbfdd7d1e72a9b6023b216719fa453a3e16ae0d044ff848

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

class TestInstantiationPrevention < ConfigurationsTest
  def test_instantiation_via_new_is_prevented
    configuration_class = @module.const_get(:Configuration)
    assert_raises NoMethodError do
      configuration_class.new({})
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
configurations-2.2.2 test/configurations/configuration/test_instantiation_prevention.rb
configurations-2.2.1 test/configurations/configuration/test_instantiation_prevention.rb
configurations-2.2.0 test/configurations/configuration/test_instantiation_prevention.rb