aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-22 14:41:55 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-22 14:41:55 +0000
commit31c82916188aa9f42832b8694da7bd5fc0048e15 (patch)
tree43c55c40f20658370fd3ba4a26da6886fe44b057 /test
parentb53d7429fcf5dcea805a33f7ddbedee3d0087253 (diff)
downloadruby-31c82916188aa9f42832b8694da7bd5fc0048e15.tar.gz
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 088f34669d..1546ce3287 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -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