diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 11:54:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 11:54:52 +0000 |
commit | c30a6dffe05102b36e8549d3cc5ab183a5aadf28 (patch) | |
tree | 13819204b6d230461dcdd66472566b22e6851383 | |
parent | 60b0a6c4b853041f7fbdd64ea69cdfb4216e13fe (diff) | |
download | redmine-c30a6dffe05102b36e8549d3cc5ab183a5aadf28.tar.gz redmine-c30a6dffe05102b36e8549d3cc5ab183a5aadf28.zip |
Use :joins instead of :include.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9076 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/repository_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |