Merged r9759 to r9764.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.0-stable@9766 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-06-03 16:32:21 +00:00
parent 5f23ebc31c
commit e9813791cb
19 changed files with 37 additions and 35 deletions
+4 -2
View File
@@ -98,8 +98,10 @@ class RepositoryTest < ActiveSupport::TestCase
end
def test_destroy
changesets = Changeset.where("repository_id = 10").all.count
changes = Changeset.joins([:changes]).where("repository_id = 10").all.count
repository = Repository.find(10)
changesets = repository.changesets.count
changes = repository.filechanges.count
assert_difference 'Changeset.count', -changesets do
assert_difference 'Change.count', -changes do
Repository.find(10).destroy