Rails3: scm: filesystem: replace @repository.reload to @project.reload of test_fetch_changesets at unit model test

Filesystem repository does not have revisions.
So, on Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error
does not raise.
But, replace the same way with other SCMs.

For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7164 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-12 10:03:09 +00:00
parent 4361ee9fc5
commit 3b6c6a6780
1 changed files with 3 additions and 1 deletions

View File

@ -34,8 +34,10 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
if File.directory?(REPOSITORY_PATH)
def test_fetch_changesets
assert_equal 0, @repository.changesets.count
assert_equal 0, @repository.changes.count
@repository.fetch_changesets
@repository.reload
@project.reload
assert_equal 0, @repository.changesets.count
assert_equal 0, @repository.changes.count
end