diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 13:08:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 13:08:00 +0000 |
commit | 258fc46c9670b4c746007a617f45ee8cd88423c0 (patch) | |
tree | 7fdffaaaaa466b9142803d4cca1bd8cb3d9e5f12 | |
parent | b8df950282ec7d97c864a606334d28d78c4a869c (diff) | |
download | ruby-258fc46c9670b4c746007a617f45ee8cd88423c0.tar.gz |
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
-rw-r--r-- | test/ruby/test_symbol.rb | 6 |
1 files 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 |