From e74f2f120286c9997300d8e70f376c62dc4b2ebd Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 25 May 2011 11:03:40 +0000 Subject: [PATCH] scm: subversion: add unit adapter test that info is not nil in test repository. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5897 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../lib/redmine/scm/adapters/subversion_adapter_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb index b791d951a..5b2b84dff 100644 --- a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb @@ -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 -- 2.39.5