Skip to content

Commit

Permalink
Support new done message on report and filters api.
Browse files Browse the repository at this point in the history
  • Loading branch information
tooky committed Jan 14, 2014
1 parent 5e70f7e commit 900a8ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cucumber/formatter/report_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def after_test_case(test_case, result)
record_test_case_result(test_case, result)
end

def after_suite
def done
printer.after
end

Expand Down
6 changes: 5 additions & 1 deletion lib/cucumber/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def run!
self.visitor = report

execute features, mappings, report, filters, run_options
report.after_suite
end

def features_paths
Expand Down Expand Up @@ -285,6 +284,11 @@ def test_case(test_case)
test_case.describe_to @receiver
end
end

def done
@receiver.done
self
end
end

def load_step_definitions
Expand Down
1 change: 0 additions & 1 deletion spec/cucumber/formatter/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def run_defined_feature
define_steps
runtime.visitor = report
execute [gherkin_doc], mappings, report
report.after_suite # TODO: move into core
end

require 'cucumber/mappings'
Expand Down

0 comments on commit 900a8ad

Please sign in to comment.