[rspec-users] Versions of RSpec & Rails

Sascha Popovic lists at ruby-forum.com
Wed May 12 09:46:46 EDT 2010


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:in
`execute'
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:in
`execute'
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:in `mon_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:in
`invoke'
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:in
`top_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:in
`top_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:in
`top_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: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: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:in
`load'
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?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list