Sha256: ccf581e2b43f9a832eede094a8ae05bdc75f2241a697d737accaa854c30611f8

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

require 'test_helper'

class TestArbitrary < ConfigurationsTest
  shares_tests :properties, :kernel_methods

  def test_respond_to_on_writer_while_writeable
    TestModule.configure do |c|
      assert_respond_to :p1=, c
    end
  end

  def test_respond_to_on_writer_when_not_writeable
    refute_respond_to @configuration, :p1=
  end

  def test_undefined_property
    assert_nil @configuration.p15
  end

  def test_respond_to_undefined_property
    assert_respond_to @configuration, :p15
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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