On Mon, Feb 25, 2008 at 9:01 AM, Rupert Voelcker <[EMAIL PROTECTED]> wrote: > Have been having some probs getting the pre-commit to run so help > would be appreciated (then I can add some specs to my patch) - thanks > for the suggestion to post here Dave :) > > I'm on OS X and have checked out the source from > svn://rubyforge.org/var/svn/rspec/trunk (rev 3317) > > rake check_for_gem_dependencies (nothing to see here) > rake install_dependencies (long wait, much network activity, various > rails versions appear in example_rails_app) > > rename database.sqlite3.yml to database.yml in example_rails_app/config > > rake pre_commit --trace
There are a couple of steps missing. Did you read the README (http://rspec.info/rdoc/files/README.html)? Also - I see you're using sqlite3. I can't run mine with sqlite3 right now. It's probably been this way for a while, because it looks like the error is the "You have 5 pending migrations:" error, which has been around for some time. Try following the directions in the README to the letter (including using mysql instead of sqlite3) and see if that works. > > Some tests fail (if this helps) > > -------------------------------------------------------------- > > 1) > 'ExampleGroup with test/unit/interop with failing examples should > return an exit code of 256' FAILED > expected: 256, > got: #<Process::Status: pid=12673,exited(0)> (using ==) > Diff: > @@ -1,2 +1,2 @@ > -256 > +#<Process::Status: pid=12673,exited(0)> > > ./spec/spec/interop/test/unit/spec_spec.rb:30: > > 2) > 'ExampleGroup with test/unit/interop with example that raises an error > should return an exit code of 256' FAILED > expected: 256, > got: #<Process::Status: pid=12675,exited(0)> (using ==) > Diff: > @@ -1,2 +1,2 @@ > -256 > +#<Process::Status: pid=12675,exited(0)> > > ./spec/spec/interop/test/unit/spec_spec.rb:42: > > 3) > 'Test::Unit::TestCase with failing test case should return an exit > code of 256' FAILED > expected: 256, > got: #<Process::Status: pid=12679,exited(0)> (using ==) > Diff: > @@ -1,2 +1,2 @@ > -256 > +#<Process::Status: pid=12679,exited(0)> > > ./spec/spec/interop/test/unit/testcase_spec.rb:30: > > 4) > 'Test::Unit::TestCase with test case that raises an error should > return an exit code of 256' FAILED > expected: 256, > got: #<Process::Status: pid=12681,exited(0)> (using ==) > Diff: > @@ -1,2 +1,2 @@ > -256 > +#<Process::Status: pid=12681,exited(0)> > > ./spec/spec/interop/test/unit/testcase_spec.rb:42: > > Finished in 23.137056 seconds > > 1305 examples, 4 failures, 8 pending > > -------------------------------------------------------------- > > and the pre-commit fails with the trace below > > Hopefully it's just something silly I've not done or done wrong, but I > can't think what.... > > Cheers > > Rupert > > -------------------------------------------------------------- > <snip> > ry_spec.rb" "spec/spec/story/world_spec.rb" > "spec/spec/translator_spec.rb" --format html:../doc/output/report.html > --backtrace failed > ./lib/spec/rake/spectask.rb:184:in `define' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1003:in `verbose' > ./lib/spec/rake/spectask.rb:153:in `define' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/pre_commit.rb:9:in > `rake_invoke' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/core.rb:10:in > `website' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/core.rb:4:in > `pre_commit' > /Users/rupert/stuff/downloads/rspec_new/rspec/rakefile:162 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in > `invoke_task' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/local/bin/rake:19:in `load' > /usr/local/bin/rake:19 > rake aborted! > RSpec Core pre_commit failed > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/rspec.rb:64:in > `pre_commit_core' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/rspec.rb:61:in > `chdir' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/rspec.rb:61:in > `pre_commit_core' > > /Users/rupert/stuff/downloads/rspec_new/rspec/pre_commit/lib/pre_commit/rspec.rb:6:in > `pre_commit' > /Users/rupert/stuff/downloads/rspec_new/rakefile:9 > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in > `invoke_task' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' > /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/local/bin/rake:19:in `load' > /usr/local/bin/rake:19 > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
