]> source.dussan.org Git - redmine.git/commitdiff
scm: subversion: add unit adapter test that info is not nil in test repository.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 11:03:40 +0000 (11:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 11:03:40 +0000 (11:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5897 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index b791d951a2d39e6b08f145c82fdec79d5b006df6..5b2b84dfffe6ee145390cb951629bbcbe558e97a 100644 (file)
@@ -42,19 +42,21 @@ begin
         end
       end
 
+      def test_info_not_nil
+        assert_not_nil @adapter.info
+      end
+
       private
 
       def test_scm_version_for(scm_version, version)
         @adapter.class.expects(:scm_version_from_command_line).returns(scm_version)
         assert_equal version, @adapter.class.svn_binary_version
       end
-
     else
       puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
       def test_fake; assert true end
     end
   end
-
 rescue LoadError
   class SubversionMochaFake < ActiveSupport::TestCase
     def test_fake; assert(false, "Requires mocha to run those tests")  end