summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-26 18:41:06 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-26 18:41:06 +0000
commit319849caf8d269df386c01991b73a204db1018f5 (patch)
treea3734ce9ffbac8d1eef02719fca23c2bc82dc1cd /test/unit
parent83e0be5d07de590e35f30b81c5870ce02746e6b7 (diff)
downloadredmine-319849caf8d269df386c01991b73a204db1018f5.tar.gz
redmine-319849caf8d269df386c01991b73a204db1018f5.zip
Parse the timezone in #last_rev for git to correct display the Age diplay. #6346
Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4187 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index 6b716b9cd..f51d4a31f 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -29,6 +29,14 @@ class GitAdapterTest < ActiveSupport::TestCase
assert_equal "jsmith", annotate.revisions[4].author
end
+ def test_last_rev
+ last_rev = @adapter.lastrev("README", "4f26664364207fa8b1af9f8722647ab2d4ac5d43")
+ assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.scmid
+ assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", last_rev.identifier
+ assert_equal "Adam Soltys <asoltys@gmail.com>", last_rev.author
+ assert_equal "2009-06-24 05:27:38".to_time, last_rev.time
+ end
+
def test_annotate_moved_file
annotate = @adapter.annotate('renamed_test.txt')
assert_kind_of Redmine::Scm::Adapters::Annotate, annotate