Exception: Cucumber::Undefined

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cucumber/step_mother.rb

Overview

Raised when there is no matching StepDefinition for a step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_name) ⇒ Undefined

Returns a new instance of Undefined.



12
13
14
15
# File 'lib/cucumber/step_mother.rb', line 12

def initialize(step_name)
  super %{Undefined step: "#{step_name}"}
  @step_name = step_name
end

Instance Attribute Details

#step_nameObject (readonly)

Returns the value of attribute step_name.



10
11
12
# File 'lib/cucumber/step_mother.rb', line 10

def step_name
  @step_name
end

Instance Method Details

#nested!Object



17
18
19
# File 'lib/cucumber/step_mother.rb', line 17

def nested!
  @nested = true
end

#nested?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/cucumber/step_mother.rb', line 21

def nested?
  @nested
end