summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-29 21:37:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-29 21:37:10 +0000
commitcdb7ea8b916ef52d9060574da12ac4037bef9492 (patch)
tree4680cc3702c284fc9a276453cd1224adf49e0d51 /test/unit
parentb2a2cb68dd322112ef4233e7575b0883f405c7be (diff)
downloadredmine-cdb7ea8b916ef52d9060574da12ac4037bef9492.tar.gz
redmine-cdb7ea8b916ef52d9060574da12ac4037bef9492.zip
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
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/repository_git_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index aa4308fdd..6ea201f9f 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -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