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

test/unit/lib/redmine/scm/adapters/git_adapter_test.rb

index a1e7f680c29e8990c35a0c97b82d286bb3cd9a13..dcd613ed462b1c5f05fe065918d666b6dd13c3ba 100644 (file)
@@ -22,6 +22,13 @@ begin
 
     if File.directory?(REPOSITORY_PATH)
       def setup
+        adapter_class = Redmine::Scm::Adapters::GitAdapter
+        assert adapter_class
+        assert adapter_class.client_command
+        assert_equal true, adapter_class.client_available
+        assert_equal true, adapter_class.client_version_above?([1])
+        assert_equal true, adapter_class.client_version_above?([1, 0])
+
         @adapter = Redmine::Scm::Adapters::GitAdapter.new(
                       REPOSITORY_PATH,
                       nil,