Sha256: d7c7d4fdc4d7b404d376409cdb6b4caec3350f75307e198fb4a3d99038af44b1
Contents?: true
Size: 735 Bytes
Versions: 4
Compression:
Stored size: 735 Bytes
Contents
module Tests module Shared module Methods def self.included(base) base.setup_with :methods end def test_method assert_equal ['CONFIGURED P1', 2], @configuration.method1.props end def test_method_with_context assert_equal 'CONTEXTCONFIGURED P1', @configuration.method2 end def test_method_with_arguments assert_equal 'ARGCONFIGURED P1', @configuration.method3('ARG') end def test_nested_method assert_equal({ a: :b, config: 'hash' }, @configuration.p3.p5.combination) end def test_kernel_methods assert_raises NotImplementedError do @configuration.kernel_raise end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems