Class: Cucumber::Events::TestCaseFinished
- Defined in:
- lib/cucumber/events/test_case_finished.rb
Overview
Event fired when a Test::Case is created from a Pickle
Instance Attribute Summary collapse
-
#result ⇒ Cucumber::Core::Test::Result
readonly
The result of running the Core::Test::Case.
-
#test_case ⇒ Cucumber::Core::Test::Case
readonly
That was executed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(test_case, result) ⇒ TestCaseFinished
constructor
A new instance of TestCaseFinished.
Methods inherited from Base
Constructor Details
#initialize(test_case, result) ⇒ TestCaseFinished
Returns a new instance of TestCaseFinished.
17 18 19 20 21 |
# File 'lib/cucumber/events/test_case_finished.rb', line 17 def initialize(test_case, result) @test_case = test_case @result = result super() end |
Instance Attribute Details
#result ⇒ Cucumber::Core::Test::Result (readonly)
Returns the result of running the Core::Test::Case.
11 12 13 |
# File 'lib/cucumber/events/test_case_finished.rb', line 11 def result @result end |
#test_case ⇒ Cucumber::Core::Test::Case (readonly)
Returns that was executed.
8 9 10 |
# File 'lib/cucumber/events/test_case_finished.rb', line 8 def test_case @test_case end |
Class Method Details
.event_id ⇒ Object
13 14 15 |
# File 'lib/cucumber/events/test_case_finished.rb', line 13 def self.event_id :test_case_finished end |