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)


261
262
263
# File 'lib/cucumber/core/test/result.rb', line 261

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

Instance Method Details

#describe_to(visitor, *args) ⇒ Object



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

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

#to_messageObject



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

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

#to_sObject



271
272
273
# File 'lib/cucumber/core/test/result.rb', line 271

def to_s
  'P'
end