[前][次][番号順一覧][スレッド一覧]

ruby-changes:8782

From: yugui <ko1@a...>
Date: Sat, 22 Nov 2008 23:50:50 +0900 (JST)
Subject: [ruby-changes:8782] Ruby:r20318 (ruby_1_9_1): * test/ruby/test_method.rb (TestMethod#test_default_accessibility):

yugui	2008-11-22 23:50:44 +0900 (Sat, 22 Nov 2008)

  New Revision: 20318

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20318

  Log:
    * test/ruby/test_method.rb (TestMethod#test_default_accessibility):
      fixed a wrong expectation in the test case.

  Modified files:
    branches/ruby_1_9_1/test/ruby/test_method.rb

Index: ruby_1_9_1/test/ruby/test_method.rb
===================================================================
--- ruby_1_9_1/test/ruby/test_method.rb	(revision 20317)
+++ ruby_1_9_1/test/ruby/test_method.rb	(revision 20318)
@@ -233,9 +233,9 @@
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]