scm: subversion: prepare version string unit lib test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4803 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d6133f6db
commit
3edbab734b
|
@ -17,9 +17,15 @@
|
||||||
|
|
||||||
require File.expand_path('../../../../../../test_helper', __FILE__)
|
require File.expand_path('../../../../../../test_helper', __FILE__)
|
||||||
|
|
||||||
|
begin
|
||||||
|
require 'mocha'
|
||||||
|
|
||||||
class SubversionAdapterTest < ActiveSupport::TestCase
|
class SubversionAdapterTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
if repository_configured?('subversion')
|
if repository_configured?('subversion')
|
||||||
|
def setup
|
||||||
|
end
|
||||||
|
|
||||||
def test_client_version
|
def test_client_version
|
||||||
v = Redmine::Scm::Adapters::SubversionAdapter.client_version
|
v = Redmine::Scm::Adapters::SubversionAdapter.client_version
|
||||||
assert v.is_a?(Array)
|
assert v.is_a?(Array)
|
||||||
|
@ -29,3 +35,9 @@ class SubversionAdapterTest < ActiveSupport::TestCase
|
||||||
def test_fake; assert true end
|
def test_fake; assert true end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rescue LoadError
|
||||||
|
class SubversionMochaFake < ActiveSupport::TestCase
|
||||||
|
def test_fake; assert(false, "Requires mocha to run those tests") end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue