ruby-changes:24979
From: nobu <ko1@a...>
Date: Tue, 25 Sep 2012 10:10:47 +0900 (JST)
Subject: [ruby-changes:24979] nobu:r37031 (trunk): test_super.rb: super from BEGIN
nobu 2012-09-25 10:10:32 +0900 (Tue, 25 Sep 2012) New Revision: 37031 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37031 Log: test_super.rb: super from BEGIN * test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064] Modified files: trunk/test/ruby/test_super.rb Index: test/ruby/test_super.rb =================================================================== --- test/ruby/test_super.rb (revision 37030) +++ test/ruby/test_super.rb (revision 37031) @@ -349,13 +349,19 @@ assert_equal 'hoge', foo.new.bar end - def test_super_in_at_exit + def assert_super_in_block(type) bug7064 = '[ruby-core:47680]' - assert_normal_exit "at_exit {super}", bug7064 + assert_normal_exit "#{type} {super}", bug7064 end + def test_super_in_at_exit + assert_super_in_block("at_exit") + end def test_super_in_END - bug7064 = '[ruby-core:47680]' - assert_normal_exit "END {super}", bug7064 + assert_super_in_block("END") end + + def test_super_in_BEGIN + assert_super_in_block("BEGIN") + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/