summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-25 01:10:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-25 01:10:32 +0000
commit26df05b2f80c47c080b01b2c23623d5aabba0321 (patch)
tree4578bc43443a46b3dc25b4ecc6dcd9b26b5ab20c /test
parent1e56548995fe2b3b266ccdfecce0ef1163534dc6 (diff)
test_super.rb: super from BEGIN
* test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_super.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb
index bdd584c0b8..bb1d46c636 100644
--- a/test/ruby/test_super.rb
+++ b/test/ruby/test_super.rb
@@ -349,13 +349,19 @@ class TestSuper < Test::Unit::TestCase
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