mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_method.rb (TestMethod#test_default_accessibility):
fixed a wrong expectation in the test case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b53d7429fc
commit
31c8291618
1 changed files with 4 additions and 4 deletions
|
@ -232,9 +232,9 @@ class TestMethod < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_default_accessibility
|
||||
assert T.public_instance_methods.include?(:normal_method)
|
||||
assert !T.public_instance_methods.include?(:initialize)
|
||||
assert M.public_instance_methods.include?(:func)
|
||||
assert !M.public_instance_methods.include?(:meth)
|
||||
assert T.public_instance_methods.include?(:normal_method), 'normal methods are public by default'
|
||||
assert !T.public_instance_methods.include?(:initialize), '#initialize is private'
|
||||
assert !M.public_instance_methods.include?(:func), 'module methods are private by default'
|
||||
assert M.public_instance_methods.include?(:meth), 'normal methods are public by default'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue