This project is archived and is in readonly mode.
default_test errors in 2.3 RC1
-
invalidusrname
This seems to only be happening on OSX for me. I've tried the same commands on an ubuntu machine and a dreamhost account and they don't have this error.
I'm using ruby 1.8.7 from macports, if that helps.
-
DHH
- Assigned user set to Jeremy Kemper
- Milestone cleared.
-
Dan Croak
I'm seeing the same error. Notice that there is one failure each of:
- ActionController::TestCase
- ActionMailer::TestCase
- ActionView::TestCase
- ActiveRecord::TestCase
- ActiveSupport::TestCase
I'm also on OS X, also including mocha. I'm using Ruby 1.8.6.
-
Dan Croak
I removed mocha from the app and still see the failures.
-
Jeremy Kemper
I haven't been able to duplicate this.
-
Dan Croak
I uninstalled mocha from my local machine and the tests ran correctly.
sudo gem uninstall mocha Password:
Select gem to uninstall: 1. mocha-0.9.1 2. mocha-0.9.3 3. All versions
3 Successfully uninstalled mocha-0.9.1 Successfully uninstalled mocha-0.9.3
Is rake picking up something in Rails' tests itself? It's weird that it would try to bring mocha into the mix at all.
-
invalidusrname
You're right Dan. I also uninstalled mocha and was able to get the tests to pass.
Does this mean that Rails has mocha bundled now? I'm a little confused because the release notes say that mocha is required for rails core to test.
-
Eloy Duran
I recently heard of some strange behaviour if minitest is installed as well. Would that be the case for you guys?
-
Dan Croak
Hey Eloy,
I do have minitest (1.3.0) installed on my machine. I'm guessing mocha was the offender, though. With mocha and minitest installed: failures. With just minitest installed: no failures.
-
Eloy Duran
Hey Dan,
Yup, it's mocha. What I meant was that mocha behaves weird in the presence of minitest. So could you tun the test around? So remove minitest and install mocha and see if the tests run?
-
Dan Croak
Hi Eloy,
I just turned the experiment around. With minitest uninstalled and mocha installed, the tests also run without the default_test errors.
Dan
-
Eloy Duran
Ok, so the problem is indeed with mocha when miniunit is installed. There has been some work done on this, I believe, at: http://github.com/floehopper/moc...
-
Jeremy Kemper
- State changed from new to hold
Thanks for tracking this down. There are quite a few permutations of ruby, test-unit, mocha, and minitest at play.
-
Eloy Duran
This commit should make sure minitest isn't loaded when using mocha: http://github.com/floehopper/moc...
-
CancelProfileIsBroken
- State changed from hold to resolved