diff options
Diffstat (limited to 'spec/support/streams.rb')
-rw-r--r-- | spec/support/streams.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/streams.rb b/spec/support/streams.rb index 610e99986a..10e1d44cf5 100644 --- a/spec/support/streams.rb +++ b/spec/support/streams.rb @@ -1,7 +1,7 @@ require 'stringio' def capture(*streams) - streams.map! { |stream| stream.to_s } + streams.map!(&:to_s) begin result = StringIO.new streams.each { |stream| eval "$#{stream} = result" } |