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

ruby-changes:29334

From: nobu <ko1@a...>
Date: Tue, 18 Jun 2013 22:08:28 +0900 (JST)
Subject: [ruby-changes:29334] nobu:r41386 (trunk): test_symbol.rb: fix test

nobu	2013-06-18 22:08:00 +0900 (Tue, 18 Jun 2013)

  New Revision: 41386

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

  Log:
    test_symbol.rb: fix test
    
    * test/ruby/test_symbol.rb (test_block_persist_between_calls): needs
      receiver object.  [Bug #8531]

  Modified files:
    trunk/test/ruby/test_symbol.rb

Index: test/ruby/test_symbol.rb
===================================================================
--- test/ruby/test_symbol.rb	(revision 41385)
+++ test/ruby/test_symbol.rb	(revision 41386)
@@ -136,11 +136,9 @@ class TestSymbol < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_symbol.rb#L136
 
   def test_block_persist_between_calls
     bug8531 = '[Bug #8531]'
-    skip bug8531
-    m = :m_block_given?.to_proc
     m2 = :m2_block_given?.to_proc
-    assert_equal([true, false], m2.call(self) {}, "#{bug8531} nested with block")
-    assert_equal([false, false], m2.call(self), "#{bug8531} nested without block")
+    assert_equal([true, false], m2.call(self, m2) {}, "#{bug8531} nested with block")
+    assert_equal([false, false], m2.call(self, m2), "#{bug8531} nested without block")
   end
 
   def test_succ

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

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