Skip to content

Commit

Permalink
Add deprecation warning for Interceptor::Pipe#buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Jan 20, 2018
1 parent 1a7612b commit 0cc6a78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cucumber/formatter/interceptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def write(str)

# @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
Expand Down

0 comments on commit 0cc6a78

Please sign in to comment.