Exception: MouseMelon::StepNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mouse_melon/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ StepNotFound

Returns a new instance of StepNotFound.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/mouse_melon/dsl.rb', line 4

def initialize(name)
  @method_name = name
  @step_name = name.to_s.gsub(/_/, ' ')
  super "undefined step '#{@step_name}'

Please define the step by one of the following definition:

step \"#{@step_name}\" do
end

or

def #{@method_name} do
end
"
end