Class: Cucumber::Core::Test::Result::UnknownDuration

Inherits:
Object
  • Object
show all
Includes:
Messages::Helpers::TimeConversion
Defined in:
lib/cucumber/core/test/result.rb

Instance Method Summary collapse

Instance Method Details

#nanosecondsObject



430
431
432
# File 'lib/cucumber/core/test/result.rb', line 430

def nanoseconds
  raise '#nanoseconds only allowed to be used in #tap block'
end

#tapObject



426
427
428
# File 'lib/cucumber/core/test/result.rb', line 426

def tap
  self
end

#to_message_durationObject



434
435
436
# File 'lib/cucumber/core/test/result.rb', line 434

def to_message_duration
  Cucumber::Messages::Duration.new(seconds: 0, nanos: 0)
end