Menu

Commit [r7062]  Maximize  Restore  History

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'

tmaruyama 2011-09-06

changed /trunk/test/unit/repository_git_test.rb
/trunk/test/unit/repository_git_test.rb Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.