[rspec-devel] rake pre_commit fails

David Chelimsky dchelimsky at gmail.com
Tue Dec 18 17:14:27 EST 2007


On Dec 18, 2007 3:53 PM, Jeremy Stephens <jeremy.stephens at vanderbilt.edu> wrote:
> Hey guys,
>
> I just checked out the repository because I want to write a patch for
> the rails plugin.  I followed the instructions to get my development
> environment setup, but when I ran 'rake pre_commit', it failed.
>
> ./examples/stories/game-of-life/behaviour/stories/steps.rb:1:
> undefined method `steps_for' for main:Object (NoMethodError)
> from /home/foo/projects/rspec/rspec/lib/spec/runner/example_group_runner.rb:14:in
> `load'
> from /home/foo/projects/rspec/rspec/lib/spec/runner/example_group_runner.rb:14:in
> `load_files'
> from /home/foo/projects/rspec/rspec/lib/spec/runner/example_group_runner.rb:13:in
> `each'
> from /home/foo/projects/rspec/rspec/lib/spec/runner/example_group_runner.rb:13:in
> `load_files'
> from /home/foo/projects/rspec/rspec/lib/spec/runner/options.rb:83:in
> `run_examples'
> from /home/foo/projects/rspec/rspec/lib/spec/runner/command_line.rb:19:in
> `run'
> from /home/foo/projects/rspec/rspec/bin/spec:3
>
> Did I set something up incorrectly?

Where are you running pre_commit from? The root, or the rspec
directory? Try running just 'rake' from the rspec directory first. If
that passes, try just running 'rake' from the root directory.

Thx

>
> TIA,
> Jeremy
> --
> Jeremy Stephens   Computer Systems Analyst I    School of Medicine
>                   Department of Biostatistics   Vanderbilt University
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the rspec-devel mailing list