Exception: Cucumber::Core::Test::Result::Pending

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)


259
260
261
# File 'lib/cucumber/core/test/result.rb', line 259

def self.ok?(strict: false)
  !strict
end

Instance Method Details

#describe_to(visitor, *args) ⇒ Object



263
264
265
266
267
# File 'lib/cucumber/core/test/result.rb', line 263

def describe_to(visitor, *args)
  visitor.pending(self, *args)
  visitor.duration(duration, *args)
  self
end

#to_messageObject



273
274
275
276
277
278
# File 'lib/cucumber/core/test/result.rb', line 273

def to_message
  Cucumber::Messages::TestStepResult.new(
    status: Cucumber::Messages::TestStepResultStatus::PENDING,
    duration: duration.to_message_duration
  )
end

#to_sObject



269
270
271
# File 'lib/cucumber/core/test/result.rb', line 269

def to_s
  'P'
end