Sha256: 486e8fa3eac19c09a93e991290196fa9c0f1311498a299275e48914d540dba6c

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

require 'test_helper'

class TestStrictWithBlocks < ConfigurationsTest
  shares_tests :properties, :properties_outside_block, :kernel_methods
  setup_with :strict_with_blocks

  def test_blocks
    @configuration.p2 = -2
    assert_equal 2, @configuration.p2
  end

  def test_set_nested_property_outside_block
    @configuration.p3.p5.p6 = %w(OUTSIDE BLOCK P3 P5 P6)
    assert_equal %w(P6 P5 P3 BLOCK OUTSIDE), @configuration.p3.p5.p6
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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