Commit 7cf3f07e authored by jplang's avatar jplang

Use :joins instead of :include.

git-svn-id: https://svn.redmine.org/redmine/trunk@9076 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c86a1a4d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment