Class: Cucumber::Core::Test::Result::Passed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration) ⇒ Passed

Returns a new instance of Passed.

Raises:

  • (ArgumentError)


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

#durationObject

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

Returns:

  • (Boolean)


54
55
56
# File 'lib/cucumber/core/test/result.rb', line 54

def ok?(be_strict = false)
  true
end

#to_sObject



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