Skip to content

Commit

Permalink
scm: mercurial: add compatible test for "info" method.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4838 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Feb 16, 2011
1 parent ec9eb44 commit a6fad1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
Expand Up @@ -42,6 +42,16 @@ def test_template_path
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')
Expand Down

0 comments on commit a6fad1e

Please sign in to comment.