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
This commit is contained in:
Toshi MARUYAMA 2011-05-25 11:03:40 +00:00
parent 41051d238e
commit e74f2f1202
1 changed files with 4 additions and 2 deletions

View 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