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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2018-02-02 11:21:12 +00:00
parent 02d7ad9722
commit 59f502295f

View file

@ -170,13 +170,9 @@ class TestSystem < Test::Unit::TestCase
assert_raise(Errno::ENOENT) do
system('feature_14235', exception: true)
end
assert_raise(RuntimeError) do
e = assert_raise(RuntimeError) do
system("'#{ruby}' -e 'exit 1'", exception: true)
end
begin
system("'#{ruby}' -e 'exit 1'", exception: true)
rescue RuntimeError => e
assert_equal true, e.message.include?('status (1)')
end
assert_match /\ACommand failed with exit 1:/, e.message
end
end