Class: Cucumber::Core::Test::Result::Passed
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Result::Passed
- Defined in:
- lib/cucumber/core/test/result.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
Instance Method Summary collapse
- #describe_to(visitor, *args) ⇒ Object
-
#initialize(duration) ⇒ Passed
constructor
A new instance of Passed.
- #ok?(be_strict = false) ⇒ Boolean
- #to_s ⇒ Object
- #with_appended_backtrace(step) ⇒ Object
- #with_filtered_backtrace(filter) ⇒ Object
Constructor Details
#initialize(duration) ⇒ Passed
Returns a new instance of Passed.
39 40 41 42 |
# File 'lib/cucumber/core/test/result.rb', line 39 def initialize(duration) raise ArgumentError unless duration @duration = duration end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
37 38 39 |
# File 'lib/cucumber/core/test/result.rb', line 37 def duration @duration end |
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
44 45 46 47 48 |
# File 'lib/cucumber/core/test/result.rb', line 44 def describe_to(visitor, *args) visitor.passed(*args) visitor.duration(duration, *args) self end |
#ok?(be_strict = false) ⇒ Boolean
54 55 56 |
# File 'lib/cucumber/core/test/result.rb', line 54 def ok?(be_strict = false) true end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/cucumber/core/test/result.rb', line 50 def to_s "✓" end |
#with_appended_backtrace(step) ⇒ Object
58 59 60 |
# File 'lib/cucumber/core/test/result.rb', line 58 def with_appended_backtrace(step) self end |
#with_filtered_backtrace(filter) ⇒ Object
62 63 64 |
# File 'lib/cucumber/core/test/result.rb', line 62 def with_filtered_backtrace(filter) self end |