Class: RSpec::Queue::BuildStatusRecorder
- Inherits:
-
Object
- Object
- RSpec::Queue::BuildStatusRecorder
- Defined in:
- lib/rspec/queue/build_status_recorder.rb
Class Attribute Summary collapse
-
.build ⇒ Object
Returns the value of attribute build.
Instance Method Summary collapse
- #example_failed(notification) ⇒ Object
- #example_passed(notification) ⇒ Object
-
#initialize ⇒ BuildStatusRecorder
constructor
A new instance of BuildStatusRecorder.
Constructor Details
#initialize ⇒ BuildStatusRecorder
Returns a new instance of BuildStatusRecorder.
11 12 |
# File 'lib/rspec/queue/build_status_recorder.rb', line 11 def initialize(*) end |
Class Attribute Details
.build ⇒ Object
Returns the value of attribute build.
8 9 10 |
# File 'lib/rspec/queue/build_status_recorder.rb', line 8 def build @build end |
Instance Method Details
#example_failed(notification) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/rspec/queue/build_status_recorder.rb', line 19 def example_failed(notification) example = notification.example build.record_error(example.id, [ notification.fully_formatted(nil), colorized_rerun_command(example), ].join("\n")) end |
#example_passed(notification) ⇒ Object
14 15 16 17 |
# File 'lib/rspec/queue/build_status_recorder.rb', line 14 def example_passed(notification) example = notification.example build.record_success(example.id) end |