lib/cucumber/formatter/interceptor.rb in cucumber-1.2.1 vs lib/cucumber/formatter/interceptor.rb in cucumber-1.2.2

- old
+ new

@@ -34,13 +34,13 @@ validate_pipe pipe wrapped = nil case pipe when :stdout wrapped = $stdout - $stdout = wrapped.unwrap! + $stdout = wrapped.unwrap! if $stdout.respond_to?(:unwrap!) when :stderr wrapped = $stderr - $stderr = wrapped.unwrap! + $stderr = wrapped.unwrap! if $stderr.respond_to?(:unwrap!) end wrapped end def self.wrap(pipe)