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

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

index 5b2b84dfffe6ee145390cb951629bbcbe558e97a..7331ee8d14e29b552ef06f70a551c370f7a6b47a 100644 (file)
@@ -46,6 +46,13 @@ begin
         assert_not_nil @adapter.info
       end
 
+      def test_info_nil
+        adpt = Redmine::Scm::Adapters::SubversionAdapter.new(
+                  "file:///invalid/invalid/"
+                  )
+        assert_nil adpt.info
+      end
+
       private
 
       def test_scm_version_for(scm_version, version)