Sha256: 42ca9002846a836d257b04e4d7838c0fe9850942517bf7288819d0048b63b03c

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

require 'test_helper'

class TestStrictTypes < ConfigurationsTest
  setup_with :strict_types
  shares_tests :properties, :properties_outside_block, :kernel_methods

  def test_configure_with_wrong_type
    assert_raises Configurations::ConfigurationError do
      @configuration.p1 = :symbol
    end
  end

  def test_configure_nested_with_wrong_type
    assert_raises Configurations::ConfigurationError do
      @configuration.p3.p5.p6 = 'STRING'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
configurations-2.2.2 test/configurations/strict_types/test.rb
configurations-2.2.1 test/configurations/strict_types/test.rb
configurations-2.2.0 test/configurations/strict_types/test.rb
configurations-2.0.0 test/configurations/strict_types/test.rb