summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-14 22:06:29 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-07-20 09:35:41 -0500
commitaf80780f713f8f798d67d1511c2817871c60f125 (patch)
tree333cdc32c817bfa8b8a8886896f1018a4667dfab
parent85f7252bc4e57c1d85e5fb1c2a808b90e209bb2b (diff)
downloadbundler-af80780f713f8f798d67d1511c2817871c60f125.tar.gz
[Helpers] Use capture helper in capture_output
-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)