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