Exception: Spinach::StepNotDefinedException

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

Overview

This class represents the exception raised when Spinach can’t find a step for a Scenario.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature, step) ⇒ StepNotDefinedException

Returns a new instance of StepNotDefinedException.

Parameters:

  • feature (Feature)

    The container feature.

  • step (Hash)

    The missing step.



38
39
40
41
# File 'lib/spinach/exceptions.rb', line 38

def initialize(feature, step)
  @feature = feature
  @step = step
end

Instance Attribute Details

#featureObject (readonly)

Returns the value of attribute feature.



29
30
31
# File 'lib/spinach/exceptions.rb', line 29

def feature
  @feature
end

#stepObject (readonly)

Returns the value of attribute step.



29
30
31
# File 'lib/spinach/exceptions.rb', line 29

def step
  @step
end