Exception: Spinach::FeatureStepsNotFoundException
- Inherits:
-
StandardError
- Object
- StandardError
- Spinach::FeatureStepsNotFoundException
- Defined in:
- lib/spinach/exceptions.rb
Overview
This class represents the exception raised when Spinach can’t find a class for a feature.
Instance Attribute Summary collapse
-
#missing_class ⇒ Object
readonly
Returns the value of attribute missing_class.
Instance Method Summary collapse
-
#initialize(options) ⇒ FeatureStepsNotFoundException
constructor
A new instance of FeatureStepsNotFoundException.
-
#message ⇒ String
A custom message when feature steps aren’t found.
Constructor Details
#initialize(options) ⇒ FeatureStepsNotFoundException
Returns a new instance of FeatureStepsNotFoundException.
10 11 12 |
# File 'lib/spinach/exceptions.rb', line 10 def initialize() @missing_class, @feature = end |
Instance Attribute Details
#missing_class ⇒ Object (readonly)
Returns the value of attribute missing_class.
22 23 24 |
# File 'lib/spinach/exceptions.rb', line 22 def missing_class @missing_class end |
Instance Method Details
#message ⇒ String
Returns A custom message when feature steps aren’t found.
18 19 20 |
# File 'lib/spinach/exceptions.rb', line 18 def "Could not find steps for `#{@feature}` feature" end |