Got uninitialized constant with cucumber? like the following
uninitialized constant Admin (NameError)
./app/controllers/admin/posts_controller.rb:1
c:/Software/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Software/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/polyglot-0.2.6/lib/polyglot.rb:55:in `require'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:118:in `require_fil
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:127:in `each_lib'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:125:in `each'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:125:in `each_lib'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:118:in `require_fil
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:54:in `execute!'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:28:in `execute'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/cucumber:9
c:/Software/Ruby/bin/cucumber:19:in `load'
c:/Software/Ruby/bin/cucumber:19
this is due to rspec features are refered instead of cucumber, to fix this run the following to create cucumber realted files
script/generate cucumber
now you can run
cucumber .
uninitialized constant Admin (NameError)
./app/controllers/admin/posts_controller.rb:1
c:/Software/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Software/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/polyglot-0.2.6/lib/polyglot.rb:55:in `require'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:118:in `require_fil
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:127:in `each_lib'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:125:in `each'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:125:in `each_lib'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:118:in `require_fil
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:54:in `execute!'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/../lib/cucumber/cli/main.rb:28:in `execute'
c:/Software/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.94/bin/cucumber:9
c:/Software/Ruby/bin/cucumber:19:in `load'
c:/Software/Ruby/bin/cucumber:19
this is due to rspec features are refered instead of cucumber, to fix this run the following to create cucumber realted files
script/generate cucumber
now you can run
cucumber .


0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home