Class: Cucumber::Formatter::Rerun
- Inherits:
-
MessageBuilder
- Object
- MessageBuilder
- Cucumber::Formatter::Rerun
- Defined in:
- lib/cucumber/formatter/rerun.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Rerun
constructor
A new instance of Rerun.
- #output_envelope(envelope) ⇒ Object
Methods inherited from MessageBuilder
Methods included from Io
ensure_dir, ensure_file, ensure_io, included, io?, url?
Constructor Details
#initialize(config) ⇒ Rerun
Returns a new instance of Rerun.
9 10 11 12 |
# File 'lib/cucumber/formatter/rerun.rb', line 9 def initialize(config) @io = ensure_io(config.out_stream, config.error_stream) super(config) end |
Instance Method Details
#output_envelope(envelope) ⇒ Object
14 15 16 17 |
# File 'lib/cucumber/formatter/rerun.rb', line 14 def output_envelope(envelope) @repository.update(envelope) finish_report if envelope.test_run_finished end |