Exception: Cucumber::Core::Test::Result::Undefined
- Inherits:
-
Raisable
- Object
- StandardError
- Raisable
- Cucumber::Core::Test::Result::Undefined
show all
- Defined in:
- lib/cucumber/core/test/result.rb
Instance Attribute Summary
Attributes inherited from Raisable
#duration, #message
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Raisable
#initialize, #ok?, #with_appended_backtrace, #with_duration, #with_filtered_backtrace, #with_message
Class Method Details
.ok?(strict: false) ⇒ Boolean
209
210
211
|
# File 'lib/cucumber/core/test/result.rb', line 209
def self.ok?(strict: false)
!strict
end
|
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
213
214
215
216
217
|
# File 'lib/cucumber/core/test/result.rb', line 213
def describe_to(visitor, *args)
visitor.undefined(*args)
visitor.duration(duration, *args)
self
end
|
#to_message ⇒ Object
223
224
225
226
227
228
|
# File 'lib/cucumber/core/test/result.rb', line 223
def to_message
Cucumber::Messages::TestStepResult.new(
status: Cucumber::Messages::TestStepResultStatus::UNDEFINED,
duration: duration.to_message_duration
)
end
|
#to_s ⇒ Object
219
220
221
|
# File 'lib/cucumber/core/test/result.rb', line 219
def to_s
'?'
end
|