1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-06-18 13:08:00 +00:00
parent b8df950282
commit 258fc46c96

View file

@ -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