From c30a6dffe05102b36e8549d3cc5ab183a5aadf28 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 4 Mar 2012 11:54:52 +0000 Subject: Use :joins instead of :include. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9076 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 9d31f0048..db0620d16 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -100,7 +100,7 @@ class RepositoryTest < ActiveSupport::TestCase def test_destroy changesets = Changeset.count(:all, :conditions => "repository_id = 10") changes = Change.count(:all, :conditions => "repository_id = 10", - :include => :changeset) + :joins => :changeset) assert_difference 'Changeset.count', -changesets do assert_difference 'Change.count', -changes do Repository.find(10).destroy -- cgit v1.2.3