This project is archived and is in readonly mode.

#782 ✓committed
Ryan Bates

Fix Failing "test_any_should_not_load_results"

Reported by Ryan Bates | August 8th, 2008 @ 03:42 AM | in 2.x

As mentioned on this thread and on the comments of this commit, there is a test which breaks if you have an older version of Mocha installed. Here's the message it gives.

  1) Failure:
    [./test/cases/../../lib/active_record/test_case.rb:40:in `assert_queries'
     ./test/cases/named_scope_test.rb:189:in `test_any_should_not_load_results'
     ./test/cases/../../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
     ./test/cases/../../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run']:
0 instead of 1 queries were executed.
<1> expected but was

Attached is a patch which fixes this problem by not using Mocha.

Comments and changes to this ticket

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=""></a>