Class: RSpec::Core::Reporter
- Inherits:
-
Object
- Object
- RSpec::Core::Reporter
- Defined in:
- lib/spec-talks/patches.rb
Instance Method Summary collapse
Instance Method Details
#report(expected_example_count, seed = nil) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/spec-talks/patches.rb', line 19 def report(expected_example_count, seed=nil) start(expected_example_count) begin yield self ensure finish(seed) if @failure_count.zero? ::Talks.success 'Tests passed' else ::Talks.error "Tests failed, there #{@failure_count} errors" end end end |