# File lib/rspec/core/reporter.rb, line 58 def example_failed(example) @failure_count += 1 notify :example_failed, example end
# File lib/rspec/core/reporter.rb, line 45 def example_group_finished(group) notify :example_group_finished, group unless group.descendant_filtered_examples.empty? end
# File lib/rspec/core/reporter.rb, line 41 def example_group_started(group) notify :example_group_started, group unless group.descendant_filtered_examples.empty? end
# File lib/rspec/core/reporter.rb, line 54 def example_passed(example) notify :example_passed, example end
# File lib/rspec/core/reporter.rb, line 63 def example_pending(example) @pending_count += 1 notify :example_pending, example end
# File lib/rspec/core/reporter.rb, line 49 def example_started(example) @example_count += 1 notify :example_started, example end
# File lib/rspec/core/reporter.rb, line 18 def finish begin stop notify :start_dump notify :dump_pending notify :dump_failures notify :dump_summary, @duration, @example_count, @failure_count, @pending_count ensure notify :close end end
# File lib/rspec/core/reporter.rb, line 37 def message(message) notify :message, message end
# File lib/rspec/core/reporter.rb, line 73 def notify(method, *args, &block) @formatters.each do |formatter| formatter.send method, *args, &block end end
# File lib/rspec/core/reporter.rb, line 9 def report(count) start(count) begin yield self ensure finish end end
Generated with the Darkfish Rdoc Generator 2.