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

Added test for invalid env exec option

This commit is contained in:
Nobuyoshi Nakada 2020-04-16 18:47:04 +09:00
parent 693378f105
commit 33aaa2aa15
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -338,6 +338,10 @@ class TestProcess < Test::Unit::TestCase
ensure
ENV["hmm"] = old
end
assert_raise_with_message(ArgumentError, /fo=fo/) {
system({"fo=fo"=>"ha"}, *ENVCOMMAND)
}
end
def test_execopt_env_path