diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-12 10:03:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-12 10:03:09 +0000 |
commit | 3b6c6a67803b16a77e3fe1aacee1c1b414ab124f (patch) | |
tree | 4fab28b621b643ac927cc843c45d622a16a866bd | |
parent | 4361ee9fc5665b3b8e48bbbe2c797fdbf50a6ac8 (diff) | |
download | redmine-3b6c6a67803b16a77e3fe1aacee1c1b414ab124f.tar.gz redmine-3b6c6a67803b16a77e3fe1aacee1c1b414ab124f.zip |
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
-rw-r--r-- | test/unit/repository_filesystem_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 613ccdaa5..3579d7608 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -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 |