Exception: Cucumber::Core::Test::Result::Undefined

Inherits:
Raisable
  • Object
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

Constructor Details

This class inherits a constructor from Cucumber::Core::Test::Result::Raisable

Class Method Details

.ok?(strict: false) ⇒ Boolean

Returns:

  • (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_messageObject



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_sObject



221
222
223
# File 'lib/cucumber/core/test/result.rb', line 221

def to_s
  '?'
end