diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-14 22:06:29 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-20 09:35:41 -0500 |
commit | af80780f713f8f798d67d1511c2817871c60f125 (patch) | |
tree | 333cdc32c817bfa8b8a8886896f1018a4667dfab /spec/support/helpers.rb | |
parent | 85f7252bc4e57c1d85e5fb1c2a808b90e209bb2b (diff) | |
download | bundler-af80780f713f8f798d67d1511c2817871c60f125.tar.gz |
[Helpers] Use capture helper in capture_output
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r-- | spec/support/helpers.rb | 9 |
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) |