summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-25 23:13:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-25 23:13:38 +0000
commit698140ea5cfab4c44206e7406118791459393088 (patch)
treedb762759ce1a1ab811b1becfa83fb5d7ff735535
parent1f72f57ad704580ea585fdcdea9fa014a34c6a02 (diff)
downloadredmine-698140ea5cfab4c44206e7406118791459393088.tar.gz
redmine-698140ea5cfab4c44206e7406118791459393088.zip
scm: bazaar: add unit adapter test that info is nil if repository path is invalid.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5903 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
index df9f8a060..f905076f4 100644
--- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
@@ -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)