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

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

Instance Method Summary collapse

Instance Method Details

#nanosecondsObject



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

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

#tapObject



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

def tap
  self
end

#to_message_durationObject



438
439
440
# File 'lib/cucumber/core/test/result.rb', line 438

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