We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d89aa5f commit 96eef6bCopy full SHA for 96eef6b
1 file changed
test/process.rb
@@ -165,7 +165,7 @@ def assert_windows(*args, &block)
165
pid = spawn("ls -asdw", err: pip)
166
167
wait_for_pid(pid)
168
- assert_equal "ls: option requires an argument -- 'w'\nTry 'ls --help' for more information.", read('tmp/pipe_error.txt')
+ assert_include read('tmp/pipe_error.txt'), "ls: option requires an argument"
169
ensure
170
IO._sysclose(pip) if OS.posix?
171
end
@@ -267,7 +267,7 @@ def assert_windows(*args, &block)
267
assert_false system 'exit 1'
268
assert_equal 1, $?.exitstatus
269
270
- assert_nothing_raised { system 'exitz' }
+ assert_nothing_raised { system 'exit' }
271
272
var = ENV['RAND']
273
env = OS.posix? ? '$MYVAR' : '%MYVAR%'
0 commit comments