summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-18 13:08:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-18 13:08:00 +0000
commit258fc46c9670b4c746007a617f45ee8cd88423c0 (patch)
tree7fdffaaaaa466b9142803d4cca1bd8cb3d9e5f12
parentb8df950282ec7d97c864a606334d28d78c4a869c (diff)
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.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index 3a4f68cdd5a..214158e8644 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