Method: TagAction#finish
- Defined in:
- lib/mspec/runner/actions/tag.rb
#finish ⇒ Object
Callback for the MSpec :finish event. Prints the actions performed while evaluating the examples.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/mspec/runner/actions/tag.rb', line 99 def finish case @action when :add if @report.empty? print "\nTagAction: no specs were tagged with '#{@tag}'\n" else print "\nTagAction: specs tagged with '#{@tag}':\n\n" print report end when :del if @report.empty? print "\nTagAction: no tags '#{@tag}' were deleted\n" else print "\nTagAction: tag '#{@tag}' deleted for specs:\n\n" print report end end end |