[Bug #1062] Error: test_def_method


#1

Bug #1062: Error: test_def_method
http://redmine.ruby-lang.org/issues/show/1062

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Masatoshi Seki
Reproducible Version: 1.8-head

test_def_method(TestERBCore)e$B$He(Btest_def_method(TestERBCoreWOStrScan)e$B$Ge(BErrore$B$,$G$F$$$^$9!#e(B

http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/last

  1. Error:
    test_def_method(TestERBCore):
    ArgumentError: wrong number of arguments (3 for 2)
    /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in
    def_erb_method' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:intest_def_method’
    /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in
    module_eval' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:intest_def_method’

  2. Error:
    test_def_method(TestERBCoreWOStrScan):
    ArgumentError: wrong number of arguments (3 for 2)
    /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:in
    def_erb_method' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:240:intest_def_method’
    /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:in
    module_eval' /home/akr/chkbuild/tmp/build/ruby-1.8/20090127T101411/ruby/test/erb/test_erb.rb:239:intest_def_method’


#2

e$B31$H$$$$$^$9!#e(B

On 2009/01/27, at 19:46, Kazuhiro NISHIYAMA wrote:

http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8/last

e$B$9$_$^$;$s!#e(B
lib/erb.rbe$B$re(Bcie$B$9$k$N$rK:$l$F$$$?$h$&$G$9!#e(B


#3

e$B%A%1%C%He(B #1062 e$B$,99?7$5$l$^$7$?!#e(B (by Masatoshi Seki)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r21808.

http://redmine.ruby-lang.org/issues/show/1062