nnn
2009-Jul-10 06:06 UTC
[rspec-users] undefined method `autorun'' for Spec::Runner:Module (NoMethodError)?
/home/jack/vendor/plugins/rspec/lib/spec/autorun.rb:3: undefined method `autorun'' for Spec::Runner:Module (NoMethodError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /home/jack/vendor/rails/activesupport/lib/active_support/ dependencies.rb:158:in `require'' when I switch to spec/model and run spec admin_spec.rb it throw me a error like this, so how to deal with it?
David Chelimsky
2009-Jul-10 10:08 UTC
[rspec-users] undefined method `autorun'' for Spec::Runner:Module (NoMethodError)?
On Fri, Jul 10, 2009 at 1:06 AM, nnn<g.zhen.ning at gmail.com> wrote:> /home/jack/vendor/plugins/rspec/lib/spec/autorun.rb:3: undefined > method `autorun'' for Spec::Runner:Module (NoMethodError) > ? ? ? ?from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > ? ? ? ?from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > ? ? ? ?from /home/jack/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:158:in `require'' > > > > when I switch to ?spec/model and run spec admin_spec.rb > it throw me a error like this, so how to deal with it?As things stand right now, you''ve got to run specs from the project root. This is a known issue (there is a ticket in lighthouse but naturally I can''t find it now).