[rspec-users] undefined method `autorun' for Spec::Runner:Module (NoMethodError)?

David Chelimsky dchelimsky at gmail.com
Fri Jul 10 06:08:55 EDT 2009


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).


More information about the rspec-users mailing list