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:
parent
41051d238e
commit
e74f2f1202
|
@ -42,19 +42,21 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_info_not_nil
|
||||||
|
assert_not_nil @adapter.info
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def test_scm_version_for(scm_version, version)
|
def test_scm_version_for(scm_version, version)
|
||||||
@adapter.class.expects(:scm_version_from_command_line).returns(scm_version)
|
@adapter.class.expects(:scm_version_from_command_line).returns(scm_version)
|
||||||
assert_equal version, @adapter.class.svn_binary_version
|
assert_equal version, @adapter.class.svn_binary_version
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
|
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
|
||||||
def test_fake; assert true end
|
def test_fake; assert true end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
class SubversionMochaFake < ActiveSupport::TestCase
|
class SubversionMochaFake < ActiveSupport::TestCase
|
||||||
def test_fake; assert(false, "Requires mocha to run those tests") end
|
def test_fake; assert(false, "Requires mocha to run those tests") end
|
||||||
|
|
Loading…
Reference in New Issue