Exception: Cucumber::MultipleWorld
- Defined in:
- lib/cucumber/step_mother.rb
Instance Method Summary collapse
-
#initialize(first_proc, second_proc) ⇒ MultipleWorld
constructor
A new instance of MultipleWorld.
Constructor Details
#initialize(first_proc, second_proc) ⇒ MultipleWorld
Returns a new instance of MultipleWorld.
55 56 57 58 59 60 61 62 |
# File 'lib/cucumber/step_mother.rb', line 55 def initialize(first_proc, second_proc) = "You can only pass a proc to #World once, but it's happening\n" << "in 2 places:\n\n" << first_proc.backtrace_line('World') << "\n" << second_proc.backtrace_line('World') << "\n\n" << "Use Ruby modules instead to extend your worlds. See the #World RDoc.\n\n" super() end |