Skip to content

Instantly share code, notes, and snippets.

@snoblenet
Created January 21, 2010 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snoblenet/282685 to your computer and use it in GitHub Desktop.
Save snoblenet/282685 to your computer and use it in GitHub Desktop.
You can only pass a proc to #World once, but it's happening
in 2 places:
Ruby/Gems/1.8/gems/cucumber-0.6.2/examples/ramaze/features/support/env.rb:32:in `World'
Ruby/Gems/1.8/gems/cucumber-0.6.2/examples/selenium_webrat/features/support/env.rb:25:in `World'
Use Ruby modules instead to extend your worlds. See the Cucumber::RbSupport::RbDsl#World RDoc
or http://wiki.github.com/aslakhellesoy/cucumber/a-whole-new-world.
(Cucumber::RbSupport::MultipleWorld)
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/rb_support/rb_language.rb:116:in `build_rb_world_factory'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/rb_support/rb_dsl.rb:15:in `build_rb_world_factory'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/rb_support/rb_dsl.rb:50:in `World'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/examples/selenium_webrat/features/support/env.rb:25
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/rb_support/rb_language.rb:124:in `load_code_file'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:84:in `load_code_file'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:76:in `load_code_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:75:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/step_mother.rb:75:in `load_code_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/cli/main.rb:48:in `execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.2/bin/cucumber:8
/usr/bin/cucumber:19:in `load'
/usr/bin/cucumber:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment