]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: add scm command tests at unit model test (#4273).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 8 Apr 2011 05:43:24 +0000 (05:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 8 Apr 2011 05:43:24 +0000 (05:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5363 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 660274d1c3da356ca3e7f66dd87e6e2703c3bd7a..3f718aed17612e6039572137c0678e41df6152cf 100644 (file)
@@ -26,6 +26,12 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
   CHAR_1_HEX = "\xc3\x9c"
 
   def setup
+    klass = Repository::Mercurial
+    assert_equal "Mercurial", klass.scm_name
+    assert klass.scm_adapter_class
+    assert_not_equal "", klass.scm_command
+    assert_equal true, klass.scm_available
+
     @project = Project.find(3)
     @repository = Repository::Mercurial.create(
                       :project => @project,