summaryrefslogtreecommitdiff
path: root/test/ruby/test_beginendblock.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-18 07:18:56 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-18 07:18:56 +0000
commit68543f30921c52cb1bf5c041879a232b41ba6580 (patch)
treef09cede74019f7be21cee0ba0a5703cc0c147060 /test/ruby/test_beginendblock.rb
parentc719cd9b463049932ae1dc1af5a6a1b50609cbef (diff)
use ML ref. for assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r--test/ruby/test_beginendblock.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb
index 6d077ba08a..e5f21286a0 100644
--- a/test/ruby/test_beginendblock.rb
+++ b/test/ruby/test_beginendblock.rb
@@ -54,15 +54,14 @@ EOW
end
def test_raise_in_at_exit
- # [ruby-core:09675]
ruby = EnvUtil.rubybin
out = IO.popen([ruby, '-e', 'STDERR.reopen(STDOUT)',
'-e', 'at_exit{raise %[SomethingBad]}',
'-e', 'raise %[SomethingElse]']) {|f|
f.read
}
- assert_match /SomethingBad/, out
- assert_match /SomethingElse/, out
+ assert_match /SomethingBad/, out, "[ruby-core:9675]"
+ assert_match /SomethingElse/, out, "[ruby-core:9675]"
end
def test_should_propagate_exit_code