scm: git: add test of from_path at unit model test_fetch_changesets_from_scratch

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-03-29 21:37:10 +00:00
parent b2a2cb68dd
commit cdb7ea8b91
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
assert_equal 3, commit.changes.count
change = commit.changes.sort_by(&:path).first
assert_equal "README", change.path
assert_equal nil, change.from_path
assert_equal "A", change.action
assert_equal NUM_HEAD, @repository.extra_info["heads"].size