diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-11 14:13:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-11 14:13:21 +0000 |
commit | 743adeb55fa370f7c0db607201fe65df71a2186e (patch) | |
tree | c33ac2fb5d3249d4f73e52cbf5f1d3ee9a421a24 /test/unit/repository_mercurial_test.rb | |
parent | 9ed7bf1d7249702e375703063571a4ecf9f2c2d3 (diff) | |
download | redmine-743adeb55fa370f7c0db607201fe65df71a2186e.tar.gz redmine-743adeb55fa370f7c0db607201fe65df71a2186e.zip |
Rails3: mercurial: git: fix error of test_fetch_changesets_incremental 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@7100 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_mercurial_test.rb')
-rw-r--r-- | test/unit/repository_mercurial_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index ee3c40c7c..308b02707 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -62,13 +62,17 @@ class RepositoryMercurialTest < ActiveSupport::TestCase end def test_fetch_changesets_incremental + assert_equal 0, @repository.changesets.count @repository.fetch_changesets + @project.reload + assert_equal NUM_REV, @repository.changesets.count # Remove changesets with revision > 2 @repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 2} - @repository.reload + @project.reload assert_equal 3, @repository.changesets.count @repository.fetch_changesets + @project.reload assert_equal 29, @repository.changesets.count end |