Exception: Spinach::StepPendingException
- Inherits:
-
StandardError
- Object
- StandardError
- Spinach::StepPendingException
- Defined in:
- lib/spinach/exceptions.rb
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.
33 34 35 |
# File 'lib/spinach/exceptions.rb', line 33 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
26 27 28 |
# File 'lib/spinach/exceptions.rb', line 26 def reason @reason end |
#step ⇒ Object
Returns the value of attribute step.
27 28 29 |
# File 'lib/spinach/exceptions.rb', line 27 def step @step end |
Instance Method Details
#message ⇒ String
Returns A custom message when scenario steps are pending.
41 42 43 |
# File 'lib/spinach/exceptions.rb', line 41 def "Step '#{@step.name}' pending" end |