lib/cucumber/formatter/interceptor.rb in cucumber-4.0.0.rc.1 vs lib/cucumber/formatter/interceptor.rb in cucumber-4.0.0.rc.2
- old
+ new
@@ -16,22 +16,9 @@
@buffer << str if @wrapped
return @pipe.write(str)
end
end
- # @deprecated use #buffer_string
- def buffer
- require 'cucumber/deprecate.rb'
- Cucumber.deprecate(
- 'Use Cucumber::Formatter::Interceptor::Pipe#buffer_string instead',
- 'Cucumber::Formatter::Interceptor::Pipe#buffer',
- '3.99'
- )
- lock.synchronize do
- return @buffer.string.lines
- end
- end
-
def buffer_string
lock.synchronize do
return @buffer.string.dup
end
end