I am having a bit of a head scratching moment here. I have a fairly new rails project that I can not get the unit tests to run.
[~/source/quibbler]
13:47:50 aburns@horcrux$ rvm -v
rvm 1.7.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
[~/source/quibbler]
13:47:56 aburns@horcrux$ cat .rvmrc
rvm use 1.9.2@quibbler --create
[~/source/quibbler]
13:49:07 aburns@horcrux$ rvm current
ruby-1.9.2-p290@quibbler
[~/source/quibbler]
13:47:59 aburns@horcrux$ rails -v
Rails 3.0.10
[~/source/quibbler]
13:49:35 aburns@horcrux$ ls test/unit/
content_test.rb helpers user_test.rb
[~/source/quibbler]
13:48:03 aburns@horcrux$ rake test:units
Loaded suite /Users/aburns/.rvm/gems/ruby-1.9.2-p290@global/gems/rake-0.9.2/lib/rake/rake_test_loader
Started
Finished in 0.002316 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 37195
My gut says this has something to do with RVM because of the gemset mismatch on the suite line and the project gemset. I am not even sure on where to start on this, any help would be appreciated.
Are you using authlogic in your applications? I found this broke my tests in exactly the same way as yours when using the
subclass.instance_evalline. If you are, just usesetup :activate_authlogicat the class level rather than inside theinstance_eval.