scm: mercurial: add compatible test for "revisions" method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4843 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
109afa7881
commit
202ebe1d12
|
@ -52,6 +52,20 @@ begin
|
|||
end
|
||||
end
|
||||
|
||||
def test_revisions
|
||||
revisions = @adapter.revisions(nil, 2, 4)
|
||||
assert_equal 3, revisions.size
|
||||
# assert_equal '2', revisions[0].revision
|
||||
assert_equal '400bb8672109', revisions[0].scmid
|
||||
# assert_equal '4', revisions[2].revision
|
||||
assert_equal 'def6d2f1254a', revisions[2].scmid
|
||||
|
||||
revisions = @adapter.revisions(nil, 2, 4, {:limit => 2})
|
||||
assert_equal 2, revisions.size
|
||||
# assert_equal '2', revisions[0].revision
|
||||
assert_equal '400bb8672109', revisions[0].scmid
|
||||
end
|
||||
|
||||
def test_diff
|
||||
if @adapter.class.client_version_above?([1, 2])
|
||||
assert_nil @adapter.diff(nil, '100000')
|
||||
|
|
Loading…
Reference in New Issue