Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Fix Failing "test_any_should_not_load_results"

#782

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_any_should_not_load_results(NamedScopeTest)
    [./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
<0>.

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

Reported by Ryan Bates · August 8th, 2008 @ 03:42 AM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Nick Sieger
    Nick Sieger

    +1 from me as the commenter on the commit.

    August 8th, 2008 @ 04:30 AM

  2. Michael Koziarski
    Michael Koziarski
    • State changed from new to committed

    August 8th, 2008 @ 09:37 AM