You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

message.rb 502 B

2 years ago
1234567891011121314151617181920212223
  1. # frozen_string_literal: true
  2. require 'cucumber/formatter/io'
  3. require 'cucumber/formatter/message_builder'
  4. module Cucumber
  5. module Formatter
  6. # The formatter used for <tt>--format message</tt>
  7. class Message < MessageBuilder
  8. include Io
  9. def initialize(config)
  10. @io = ensure_io(config.out_stream, config.error_stream)
  11. super(config)
  12. end
  13. def output_envelope(envelope)
  14. @io.write(envelope.to_json)
  15. @io.write("\n")
  16. end
  17. end
  18. end
  19. end

No Description

Contributors (1)