views:

589

answers:

2

Hi all,

I've been trying to get RSpec running under Ruby 1.9, and my tests just aren't running. Here's my trace:

matt@matt-desktop:~/Development/my_app$ sudo rake spec --trace
(in /home/matt/Development/my_app)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment 
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment 
** Execute db:schema:load
** Execute spec

And that's it, nothing happens.

Here's the appropriate gems:

cucumber (0.3.11, 0.3.9)
rails (2.3.2)
rake (0.8.7)
rspec (1.2.6)
rspec-rails (1.2.6)
test-unit (2.0.2, 1.2.3)

Any help would be greatly appreciated.

+4  A: 

You need to uninstall test-unit 2.0.2, Rspec doesn't load 1.2.3 properly if it exists.

fluid_chelsea
Hmm, bizzare. Looks like that fixed it though. Thanks!
Matt Grande
No problem, I had the exact some problem when I upgraded!
fluid_chelsea
A: 

Its pain in the ass that sometime you do a sudo gem update without thinking all the messes we have with that newer version of test-unit..