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.
99
100
101
|
# File 'lib/cucumber/core/test/runner.rb', line 99
def initialize(step_result)
@step_result = step_result
end
|
Instance Method Details
#execute(test_step, monitor, &continue) ⇒ Object
103
104
105
106
107
108
|
# File 'lib/cucumber/core/test/runner.rb', line 103
def execute(test_step, monitor, &continue)
result = test_step.execute(monitor.result, &continue)
result = result.with_message(%(Undefined step: "#{test_step.name}")) if result.undefined?
result = result.with_appended_backtrace(test_step.source.last) if IsStepVisitor.new(test_step).step?
result.describe_to(monitor, result)
end
|
#result ⇒ Object
110
111
112
|
# File 'lib/cucumber/core/test/runner.rb', line 110
def result
raise NoMethodError, "Override me"
end
|