Permalink
Browse files

Return the orig_system() return value

  • Loading branch information...
1 parent 4a18998 commit 5f07687dddd33b94f029177c4b11aa93fe196c92 @jordansissel committed Dec 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/spec_setup.rb
View
@@ -32,9 +32,10 @@ def system(*args)
null = File.new("/dev/null", "w")
$stdout.reopen(null)
$stderr.reopen(null)
- orig_system(*args)
+ value = orig_system(*args)
$stdout.reopen(old_stdout)
$stderr.reopen(old_stderr)
null.close
+ return value
end
end

0 comments on commit 5f07687

Please sign in to comment.