Versions of RSpec & Rails

Hello.
I’m new to ROR and i’m trying to use RSpec.
I use Rails 2.3.5.

I installed RSpec and RSpec-Rails as Plugin in my Project and i
installed the Gem.
Then i user script/generate rspec to generate the needed files.

When i want to use RSpec over Rake with “rake spec” i get the following
error:


** Invoke environment (first_time)
** Execute environment
** Invoke spec (first_time)
** Execute spec
** Invoke spec:models (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment
** Execute db:abort_if_pending_migrations
rake aborted!
RSpec failures
D:/Workspaces/NetBeans/RubyOnRails/feeder/lib/tasks/rspec.rake:13
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/1.8/monitor.rb:242:inmon_synchronize’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling’
C:/Programme/NetBeans
6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 C:/Programme/NetBeans 6.8/ruby2/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:inload’
C:\Programme\NetBeans 6.8\ruby2\jruby-1.4.0\bin\rake:19
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Invoke spec:controllers (first_time)
** Invoke db:test:prepare
** Execute spec:controllers

Finished in 0,0 seconds.
0 tests, 0 failures, 0 errors


I thought this is an error because of the version of RSpec.
First i used the Version 1.3.2 for rspec-rails and the Version 1.3.0 for
RSpec.
I got the same error message.
then i used the Version 1.2.9 for rspec and for rspec-rails and again i
get the error message.

Searching at google for the error doesn’t help and now, i don’t now the
solution for my problem.

Can somebody please help me?

I could be wrong, Im new to rspec and RoR myself, but I can see the line
“**
Execute db:abort_if_pending_migrations” before teh abort happens.

Have you rune rake db:migrate recently?

Matt