Exception: Spinach::FeatureStepsNotFoundException

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ FeatureStepsNotFoundException

Returns a new instance of FeatureStepsNotFoundException.

Parameters:

  • options (Array)

    An array consisting of the missing class and the feature.



10
11
12
# File 'lib/spinach/exceptions.rb', line 10

def initialize(options)
  @missing_class, @feature = options
end

Instance Attribute Details

#missing_classObject (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

#messageString

Returns A custom message when feature steps aren’t found.

Returns:

  • (String)

    A custom message when feature steps aren’t found.



18
19
20
# File 'lib/spinach/exceptions.rb', line 18

def message
  "Could not find steps for `#{@feature}` feature"
end