Class: Cucumber::Core::Events::TestStepFinished
- Defined in:
- lib/cucumber/core/events/test_step_finished.rb
Overview
Signals that a Test::Step has finished executing
Instance Attribute Summary collapse
-
#result ⇒ Cucumber::Core::Test::Result
readonly
The result of running the Test::Step.
-
#test_step ⇒ Cucumber::Core::Test::Step
readonly
The test step that was executed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_step, result) ⇒ TestStepFinished
constructor
A new instance of TestStepFinished.
Methods inherited from Base
Constructor Details
#initialize(test_step, result) ⇒ TestStepFinished
Returns a new instance of TestStepFinished.
20 21 22 23 24 |
# File 'lib/cucumber/core/events/test_step_finished.rb', line 20 def initialize(test_step, result) @test_step = test_step @result = result super() end |
Instance Attribute Details
#result ⇒ Cucumber::Core::Test::Result (readonly)
Returns the result of running the Test::Step.
14 15 16 |
# File 'lib/cucumber/core/events/test_step_finished.rb', line 14 def result @result end |
#test_step ⇒ Cucumber::Core::Test::Step (readonly)
Returns the test step that was executed.
11 12 13 |
# File 'lib/cucumber/core/events/test_step_finished.rb', line 11 def test_step @test_step end |
Class Method Details
.event_id ⇒ Object
16 17 18 |
# File 'lib/cucumber/core/events/test_step_finished.rb', line 16 def self.event_id :test_step_finished end |