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

ruby-changes:32315

From: nobu <ko1@a...>
Date: Wed, 25 Dec 2013 01:44:50 +0900 (JST)
Subject: [ruby-changes:32315] nobu:r44394 (trunk): test_variable.rb: fix test

nobu	2013-12-25 01:44:44 +0900 (Wed, 25 Dec 2013)

  New Revision: 44394

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

  Log:
    test_variable.rb: fix test
    
    * test/ruby/test_variable.rb (test_binding_local_variables):
      adjust local variables.

  Modified files:
    trunk/test/ruby/test_variable.rb
Index: test/ruby/test_variable.rb
===================================================================
--- test/ruby/test_variable.rb	(revision 44393)
+++ test/ruby/test_variable.rb	(revision 44394)
@@ -88,10 +88,9 @@ class TestVariable < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_variable.rb#L88
     bind.local_variables
   end
 
-  def test_local_variables_from_other_method_binding
+  def test_binding_local_variables
     feature8773 = '[Feature #8773]'
-    x = 1
-    assert_equal([:x], local_variables_of(binding), feature8773)
+    assert_equal([:feature8773], local_variables_of(binding), feature8773)
   end
 
   def test_global_variable_0

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

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