From 258fc46c9670b4c746007a617f45ee8cd88423c0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 18 Jun 2013 13:08:00 +0000 Subject: [PATCH] test_symbol.rb: fix test * test/ruby/test_symbol.rb (test_block_persist_between_calls): needs receiver object. [Bug #8531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 3a4f68cdd5..214158e864 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -136,11 +136,9 @@ class TestSymbol < Test::Unit::TestCase 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