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:
parent
693378f105
commit
33aaa2aa15
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue