Class: Cucumber::CleanupFormatter
- Inherits:
-
Object
- Object
- Cucumber::CleanupFormatter
- Includes:
- Formatter::ANSIColor
- Defined in:
- lib/cucumber/cleanup_formatter.rb
Instance Method Summary collapse
- #after_features(features) ⇒ Object
-
#initialize(step_mother, path_or_io, options) ⇒ CleanupFormatter
constructor
A new instance of CleanupFormatter.
Constructor Details
#initialize(step_mother, path_or_io, options) ⇒ CleanupFormatter
Returns a new instance of CleanupFormatter.
7 8 9 |
# File 'lib/cucumber/cleanup_formatter.rb', line 7 def initialize(step_mother, path_or_io, ) @step_mother = step_mother end |
Instance Method Details
#after_features(features) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cucumber/cleanup_formatter.rb', line 11 def after_features(features) defs = @step_mother.unmatched_step_definitions if !defs.empty? $stdout.puts yellow("The following steps are unused:") $stdout.puts defs.each do |step| $stdout.puts yellow(step.file_colon_line) end end end |