Rails3: scm: git: fix error of test_db_consistent_ordering_before_1_2 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@7084 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5a51410700
commit
942563a116
|
@ -207,7 +207,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||
@repository.changesets.each do |rev|
|
||||
rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s }
|
||||
end
|
||||
@repository.reload
|
||||
@project.reload
|
||||
cs1 = @repository.changesets
|
||||
assert_equal 15, cs1.count
|
||||
assert_equal 0, @repository.extra_info["db_consistent"]["ordering"]
|
||||
|
|
Loading…
Reference in New Issue