summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-06 02:06:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-06 02:06:29 +0000
commit1ea1606007b7eefe7e79878d5bf2dea0ce2ed84f (patch)
tree4271004c876ed0dd86a5dded7ada12afb57371e3 /test
parent0d942beb494f4c6ed693ca0555e084f0ef3b45a8 (diff)
downloadredmine-1ea1606007b7eefe7e79878d5bf2dea0ce2ed84f.tar.gz
redmine-1ea1606007b7eefe7e79878d5bf2dea0ce2ed84f.zip
scm: git: split unit adapter revisions test to with time or not (#7146, #6013).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5660 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb4
1 files changed, 3 insertions, 1 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 f7fd69583..7c80b575a 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -81,9 +81,11 @@ begin
assert_equal 21, revs1.length
assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', revs1[0].identifier
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[20].identifier
+ end
+ def test_revisions_reverse_with_time
since2 = Time.gm(2010, 9, 30, 0, 0, 0)
- revs2 = @adapter.revisions('',nil,nil,{:all => true, :since => since2, :reverse => true })
+ revs2 = @adapter.revisions('',nil,nil,{:all => true, :since => since2, :reverse => true })
assert_equal 6, revs2.length
assert_equal '67e7792ce20ccae2e4bb73eed09bb397819c8834', revs2[0].identifier
assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs2[5].identifier