summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-11 08:44:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-11 08:44:16 +0000
commit9c81407b917050422b746fb60b3cb139a91f2821 (patch)
tree01e8abdf35d0fc949f2245b66c09bbb10483cff8
parent2cc6197b7029576ede061f44545ed6e88f8a4545 (diff)
downloadredmine-9c81407b917050422b746fb60b3cb139a91f2821.tar.gz
redmine-9c81407b917050422b746fb60b3cb139a91f2821.zip
Rails3: scm: git: fix error of test_latest_changesets_latin_1_dir at unit model test
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
-rw-r--r--test/unit/repository_git_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index 103c236a2..c56e7b75b 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -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 [