This project is archived and is in readonly mode.
default_test errors in 2.3 RC1
Reported by invalidusrname | February 2nd, 2009 @ 01:53 AM
I think I might've found a bug with Rails 2.3 RC1. Creating a new project, there's 5 tests that fail automatically. Not sure if this is a mocha problem or rails, but I'm going to post it here first:
If mocha has a mailing-list, bug tracker, I can report it there too.
Comments and changes to this ticket
-
invalidusrname February 4th, 2009 @ 03:27 AM
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 February 6th, 2009 @ 02:03 PM
- Assigned user set to Jeremy Kemper
- Milestone cleared.
-
Dan Croak February 9th, 2009 @ 07:30 PM
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 February 27th, 2009 @ 09:09 PM
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 February 27th, 2009 @ 09:16 PM
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 February 28th, 2009 @ 12:20 PM
I recently heard of some strange behaviour if minitest is installed as well. Would that be the case for you guys?
-
Dan Croak March 1st, 2009 @ 04:39 PM
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 March 1st, 2009 @ 09:40 PM
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 March 2nd, 2009 @ 03:40 PM
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 March 2nd, 2009 @ 03:47 PM
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 March 2nd, 2009 @ 04:13 PM
- 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 March 4th, 2009 @ 07:40 PM
This commit should make sure minitest isn't loaded when using mocha: http://github.com/floehopper/moc...
-
CancelProfileIsBroken August 3rd, 2009 @ 02:29 PM
- State changed from hold to resolved
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>