]> source.dussan.org Git - redmine.git/commitdiff
Rails3: scm: git: fix error of test_latest_changesets_latin_1_dir at unit model test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 11 Sep 2011 08:44:16 +0000 (08:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 11 Sep 2011 08:44:16 +0000 (08:44 +0000)
On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises.
For more details, see r7062.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7087 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_git_test.rb

index 103c236a2732d6925077b5b1be81090611ad3846..c56e7b75b155859e94ca170e551d776d3d2a6896 100644 (file)
@@ -350,8 +350,10 @@ class RepositoryGitTest < ActiveSupport::TestCase
       elsif JRUBY_SKIP
         puts JRUBY_SKIP_STR
       else
+        assert_equal 0, @repository.changesets.count
         @repository.fetch_changesets
-        @repository.reload
+        @project.reload
+        assert_equal NUM_REV, @repository.changesets.count
         changesets = @repository.latest_changesets(
                     "latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed')
         assert_equal [