spec/support/stdout_helper.rb in guard-rails-assets-0.1.5 vs spec/support/stdout_helper.rb in guard-rails-assets-0.1.6

- old
+ new

@@ -1,17 +1,15 @@ require 'stringio' module Helpers - def capture(*streams) - streams.map! { |stream| stream.to_s } + streams.map!(&:to_s) begin result = StringIO.new streams.each { |stream| eval "$#{stream} = result" } yield ensure streams.each { |stream| eval("$#{stream} = #{stream.upcase}") } end result.string end - -end \ No newline at end of file +end