scm: mercurial: add compatible test for "info" method.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4838 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 01:13:49 +00:00 committed by Eric Davis
parent 29f99eee07
commit 60f165a9fc
1 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,16 @@ begin
end
end
def test_info
[REPOSITORY_PATH, REPOSITORY_PATH + "/",
REPOSITORY_PATH + "//"].each do |repo|
adp = Redmine::Scm::Adapters::MercurialAdapter.new(repo)
assert_equal REPOSITORY_PATH, adp.info.root_url
# assert_equal '16', adp.info.lastrev.revision
assert_equal '4cddb4e45f52',adp.info.lastrev.scmid
end
end
def test_diff
if @adapter.class.client_version_above?([1, 2])
assert_nil @adapter.diff(nil, '100000')