Sha256: 16956fa74bed6b1633360691e87238640031c3aad143bf69eaedaddbc77831dc
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/mega/dynamod.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'mega/dynamod.rb' require 'test/unit' class TC01 < Test::Unit::TestCase module M dynamic_feature do |opt| define_method :f do opt[:p] end end end class C include M, :p => "check" end def test_01_001 assert_equal( "check", C.new.f ) end end class TC02 < Test::Unit::TestCase module M def f ; module_options(:s) ; end end class C include M, :s => "check 123" end def test_02_001 assert_equal( "check 123", C.new.f ) end end class TC03 < Test::Unit::TestCase module M def f ; module_options(:q) ; end end class C extend M, :q => "check 123" end def test_03_001 assert_equal( "check 123", C.f ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/mega/test_dynamod.rb |