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:
parent
babae04960
commit
f620e9e7d3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue