]> source.dussan.org Git - redmine.git/commit
Rails3: scm: git: fix error of test_fetch_changesets_from_scratch at unit model test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 6 Sep 2011 13:57:49 +0000 (13:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 6 Sep 2011 13:57:49 +0000 (13:57 +0000)
commit9cc83b425ba7643c7f92dafd5c95ae7d71e31cb5
tree3a103c1d5f86629c61aa1ff0d72fcd500156e6d3
parent1b9bb1ad0bf8c63170a169ed9da2ec3122dfab13
Rails3: scm: git: fix error of test_fetch_changesets_from_scratch at unit model test

On Rails 3.1, following error raises.

test_fetch_changesets_from_scratch(RepositoryGitTest):
ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection:
 Cannot modify association 'Repository::Git#changes'
 because the source reflection class 'Change' is associated to 'Changeset' via :has_many.
    test/unit/repository_git_test.rb:68:in `test_fetch_changesets_from_scratch'

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7062 e93f8b46-1217-0410-a6f0-8f06a7374b81
test/unit/repository_git_test.rb