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

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

index df9f8a060891864dd9ad04355d5f25233c321e95..f905076f4024df87e7f9137afddaa5caad7f0042 100644 (file)
@@ -60,6 +60,13 @@ begin
         assert_not_nil @adapter.info
       end
 
+      def test_info_nil
+        adpt = Redmine::Scm::Adapters::BazaarAdapter.new(
+                  "/invalid/invalid/"
+                  )
+        assert_nil adpt.info
+      end
+
       private
 
       def test_scm_version_for(scm_command_version, version)