diff --git a/features/support/env.rb b/features/support/env.rb index 06d38ec..dc82856 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -14,3 +14,28 @@ module Cucumber end require 'aruba/cucumber' + + +require 'cucumber/formatter/pretty' + +module Cucumber + module Ast + class DocString + alias :old_initialize :initialize + + def initialize(string, content_type) + old_initialize(string + "\n", content_type) + end + end + end + + module Formatter + class Pretty + alias :old_doc_string :doc_string + + def doc_string(string) + old_doc_string(string.chomp) + end + end + end +end