###### ##### #### ###### ## ## ## ## ## #### ## ## ## ## ## ## ## ##### #### ## require 'test/unit' require 'mega/methodprobe' # " I am a Duck Hunter ! " class TC_MethodProbe < Test::Unit::TestCase # fixture def amethod(x) x + 1 end def test_signiture_default assert_nothing_raised { method(:amethod).signature } end def test_signiture_with_class assert_nothing_raised { method(:amethod).signature(:class) } end def test_signiture_pp assert_nothing_raised { method(:amethod).signature(:pp) } end def test_signiture_all assert_nothing_raised { method(:amethod).signature(:complete) } end end