summaryrefslogtreecommitdiff
path: root/spec/support/streams.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-18 16:42:16 -0600
committerAndre Arko <andre@arko.net>2015-07-18 16:44:56 -0600
commit14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a (patch)
tree080c4590629671f0bf0fc23225b9b4b5e5e16e95 /spec/support/streams.rb
parent6537566d7179d3aee3451ece710cbe79ced95d4c (diff)
downloadbundler-14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a.tar.gz
Fix Style/SpaceInsideBlockBraces
closes #3850
Diffstat (limited to 'spec/support/streams.rb')
-rw-r--r--spec/support/streams.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/streams.rb b/spec/support/streams.rb
index 6a0995133f..f89c506c93 100644
--- a/spec/support/streams.rb
+++ b/spec/support/streams.rb
@@ -4,10 +4,10 @@ def capture(*streams)
streams.map!(&:to_s)
begin
result = StringIO.new
- streams.each { |stream| eval "$#{stream} = result" }
+ streams.each {|stream| eval "$#{stream} = result" }
yield
ensure
- streams.each { |stream| eval("$#{stream} = #{stream.upcase}") }
+ streams.each {|stream| eval("$#{stream} = #{stream.upcase}") }
end
result.string
end