summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/support/helpers.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 34335ee1a3..2c3a8f7254 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -400,14 +400,7 @@ module Spec
end
def capture_output
- fake_stdout = StringIO.new
- actual_stdout = $stdout
- $stdout = fake_stdout
- yield
- fake_stdout.rewind
- fake_stdout.read
- ensure
- $stdout = actual_stdout
+ capture(:stdout)
end
def with_read_only(pattern)