Exception: Cucumber::Core::Test::Result::Skipped

Inherits:
Raisable
  • Object
show all
Includes:
BooleanMethods
Defined in:
lib/cucumber/core/test/result/skipped.rb

Constant Summary

Constants included from BooleanMethods

BooleanMethods::TYPES

Instance Attribute Summary

Attributes inherited from Raisable

#duration, #message

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BooleanMethods

#ok?

Methods inherited from Raisable

#initialize, #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?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/cucumber/core/test/result/skipped.rb', line 13

def self.ok?
  true
end

Instance Method Details

#describe_to(visitor) ⇒ Object



17
18
19
20
21
# File 'lib/cucumber/core/test/result/skipped.rb', line 17

def describe_to(visitor, *)
  visitor.skipped(*)
  visitor.duration(duration, *)
  self
end

#to_messageObject



31
32
33
34
35
36
# File 'lib/cucumber/core/test/result/skipped.rb', line 31

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

#to_sObject



23
24
25
# File 'lib/cucumber/core/test/result/skipped.rb', line 23

def to_s
  '-'
end

#to_symObject



27
28
29
# File 'lib/cucumber/core/test/result/skipped.rb', line 27

def to_sym
  :skipped
end