Sha256: 0900e8012abd4e0aa80c068cb308ce69d04cccd250e7d648afe4ebe9c0e186fe
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
# Test lib/facets/instantise.rb require 'facets/instantise.rb' require 'test/unit' # fixture module MyModule extend Instantise def self.jumble( obj, arg ) obj + arg end end class String include MyModule end # test class TC_PromoteSelf < Test::Unit::TestCase def test01 assert_equal( 'TryMe', MyModule.jumble( "Try", "Me" ) ) end def test02 assert_equal( 'TryMe', "Try".jumble( "Me" ) ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.1 | test/unit/test_instantise.rb |
facets-2.2.0 | test/unit/test_instantise.rb |
facets-2.1.3 | test/unit/test_instantise.rb |