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
211
212
213
|
# File 'lib/cucumber/core/test/result.rb', line 211
def self.ok?(strict: false)
!strict
end
|
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
215
216
217
218
219
|
# File 'lib/cucumber/core/test/result.rb', line 215
def describe_to(visitor, *args)
visitor.undefined(*args)
visitor.duration(duration, *args)
self
end
|
#to_message ⇒ Object
225
226
227
228
229
230
|
# File 'lib/cucumber/core/test/result.rb', line 225
def to_message
Cucumber::Messages::TestStepResult.new(
status: Cucumber::Messages::TestStepResultStatus::UNDEFINED,
duration: duration.to_message_duration
)
end
|
#to_s ⇒ Object
221
222
223
|
# File 'lib/cucumber/core/test/result.rb', line 221
def to_s
'?'
end
|