Class: Spec::Runner::Reporter
- Inherits:
-
Object
- Object
- Spec::Runner::Reporter
- Defined in:
- lib/devcreek_specreporter.rb
Instance Method Summary collapse
- #end(*args) ⇒ Object
- #example_failed(*args) ⇒ Object
- #example_finished(*args) ⇒ Object
- #example_started(*args) ⇒ Object
- #old_end ⇒ Object
- #old_example_failed ⇒ Object
- #old_example_finished ⇒ Object
- #old_example_started ⇒ Object
- #old_start ⇒ Object
- #start(*args) ⇒ Object
Instance Method Details
#end(*args) ⇒ Object
41 42 43 44 45 |
# File 'lib/devcreek_specreporter.rb', line 41 def end(*args) result = old_end(*args) DevCreek::RSpecAdapter.instance().end return result end |
#example_failed(*args) ⇒ Object
35 36 37 38 39 |
# File 'lib/devcreek_specreporter.rb', line 35 def example_failed(*args) result = old_example_failed(*args) DevCreek::RSpecAdapter.instance().example_failed(args[0].description, @example_groups.last.description, @failures.last.expectation_not_met?) return result end |
#example_finished(*args) ⇒ Object
29 30 31 32 33 |
# File 'lib/devcreek_specreporter.rb', line 29 def example_finished(*args) result = old_example_finished(*args) DevCreek::RSpecAdapter.instance().example_finished(args[0].description, @example_groups.last.description) return result end |
#example_started(*args) ⇒ Object
23 24 25 26 27 |
# File 'lib/devcreek_specreporter.rb', line 23 def example_started(*args) result = old_example_started(*args) DevCreek::RSpecAdapter.instance().example_started(args[0].description, @example_groups.last.description) return result end |
#old_end ⇒ Object
15 |
# File 'lib/devcreek_specreporter.rb', line 15 alias_method :old_end, :end |
#old_example_failed ⇒ Object
14 |
# File 'lib/devcreek_specreporter.rb', line 14 alias_method :old_example_failed, :example_failed |
#old_example_finished ⇒ Object
13 |
# File 'lib/devcreek_specreporter.rb', line 13 alias_method :old_example_finished, :example_finished |
#old_example_started ⇒ Object
12 |
# File 'lib/devcreek_specreporter.rb', line 12 alias_method :old_example_started, :example_started |
#old_start ⇒ Object
11 |
# File 'lib/devcreek_specreporter.rb', line 11 alias_method :old_start, :start |
#start(*args) ⇒ Object
17 18 19 20 21 |
# File 'lib/devcreek_specreporter.rb', line 17 def start(*args) result = old_start(*args) DevCreek::RSpecAdapter.instance().start return result end |