Sha256: 940b434dd2ac0ea01ab88b6626ac8eeeda0dd0b6d9b4827c947779645d48c743

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

require 'test_helper'

class TestStrict < ConfigurationsTest
  setup_with :strict
  shares_tests :properties, :properties_outside_block, :kernel_methods

  def test_respond_to_writer
    assert_respond_to @configuration, :p1=
  end

  def test_undefined_property
    assert_raises NoMethodError do
      @configuration.p15
    end
  end

  def test_respond_to_undefined_property
    refute_respond_to @configuration, :p15
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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