1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_defined.rb (TestDefined#test_super_toplevel):

additional test for r40584.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-05 10:02:41 +00:00
parent babae04960
commit f620e9e7d3

View file

@ -1,4 +1,5 @@
require 'test/unit'
require_relative 'envutil'
class TestDefined < Test::Unit::TestCase
class Foo
@ -204,4 +205,8 @@ class TestDefined < Test::Unit::TestCase
o.extend(m)
assert_equal("super", o.x)
end
def test_super_toplevel
assert_separately([], "assert_nil(defined?(super))")
end
end