Exception: Spinach::StepPendingException
- Inherits:
-
StandardError
- Object
- StandardError
- Spinach::StepPendingException
- Defined in:
- lib/spinach/exceptions.rb
Overview
This class represents the exception raised when Spinach find a step which claims to be pending for a FeatureSteps.
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#step ⇒ Object
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(reason) ⇒ StepPendingException
constructor
A new instance of StepPendingException.
-
#message ⇒ String
A custom message when scenario steps are pending.
Constructor Details
#initialize(reason) ⇒ StepPendingException
Returns a new instance of StepPendingException.
36 37 38 |
# File 'lib/spinach/exceptions.rb', line 36 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
29 30 31 |
# File 'lib/spinach/exceptions.rb', line 29 def reason @reason end |
#step ⇒ Object
Returns the value of attribute step.
30 31 32 |
# File 'lib/spinach/exceptions.rb', line 30 def step @step end |
Instance Method Details
#message ⇒ String
Returns A custom message when scenario steps are pending.
44 45 46 |
# File 'lib/spinach/exceptions.rb', line 44 def "Step '#{@step.name}' pending" end |