Skip to content

Commit 96eef6b

Browse files
committed
fixed testbug
1 parent d89aa5f commit 96eef6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/process.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def assert_windows(*args, &block)
165165
pid = spawn("ls -asdw", err: pip)
166166

167167
wait_for_pid(pid)
168-
assert_equal "ls: option requires an argument -- 'w'\nTry 'ls --help' for more information.", read('tmp/pipe_error.txt')
168+
assert_include read('tmp/pipe_error.txt'), "ls: option requires an argument"
169169
ensure
170170
IO._sysclose(pip) if OS.posix?
171171
end
@@ -267,7 +267,7 @@ def assert_windows(*args, &block)
267267
assert_false system 'exit 1'
268268
assert_equal 1, $?.exitstatus
269269

270-
assert_nothing_raised { system 'exitz' }
270+
assert_nothing_raised { system 'exit' }
271271

272272
var = ENV['RAND']
273273
env = OS.posix? ? '$MYVAR' : '%MYVAR%'

0 commit comments

Comments
 (0)