Class: Cucumber::Core::Test::Runner::RunningTestCase::Status::Base
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Runner::RunningTestCase::Status::Base
show all
- Defined in:
- lib/cucumber/core/test/runner.rb
Instance Method Summary
collapse
Constructor Details
#initialize(step_result) ⇒ Base
Returns a new instance of Base.
118
119
120
|
# File 'lib/cucumber/core/test/runner.rb', line 118
def initialize(step_result)
@step_result = step_result
end
|
Instance Method Details
#execute(test_step, monitor) ⇒ Object
122
123
124
125
126
127
|
# File 'lib/cucumber/core/test/runner.rb', line 122
def execute(test_step, monitor, &)
result = test_step.execute(monitor.result, &)
result = result.with_message(%(Undefined step: "#{test_step.text}")) if result.undefined?
result = result.with_appended_backtrace(test_step) unless test_step.hook?
result.describe_to(monitor, result)
end
|
#result ⇒ Object
129
130
131
|
# File 'lib/cucumber/core/test/runner.rb', line 129
def result
raise NoMethodError, 'Override me'
end
|
#step_result_message ⇒ Object
133
134
135
|
# File 'lib/cucumber/core/test/runner.rb', line 133
def step_result_message
step_result.to_message
end
|