Exception: Spinach::StepPendingException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spinach/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ StepPendingException

Returns a new instance of StepPendingException.

Parameters:

  • reason (String)

    The reason why the step is set to pending



33
34
35
# File 'lib/spinach/exceptions.rb', line 33

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



26
27
28
# File 'lib/spinach/exceptions.rb', line 26

def reason
  @reason
end

#stepObject

Returns the value of attribute step.



27
28
29
# File 'lib/spinach/exceptions.rb', line 27

def step
  @step
end

Instance Method Details

#messageString

Returns A custom message when scenario steps are pending.

Returns:

  • (String)

    A custom message when scenario steps are pending.



41
42
43
# File 'lib/spinach/exceptions.rb', line 41

def message
  "Step '#{@step.name}' pending"
end