Replace puts and !!! messages with pending tests when the test SCMs are missing

This commit is contained in:
Eric Davis 2011-12-27 18:23:05 -08:00
parent 7bce7f7b07
commit 3df729e47d
21 changed files with 22 additions and 28 deletions

View File

@ -131,7 +131,6 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
:sibling => { :tag => 'td', :content => /Main purpose/ }
end
else
puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Bazaar test repository not found."
end
end

View File

@ -189,7 +189,6 @@ class RepositoriesCvsControllerTest < ActionController::TestCase
}
end
else
puts "CVS test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "CVS test repository not found."
end
end

View File

@ -98,7 +98,6 @@ class RepositoriesDarcsControllerTest < ActionController::TestCase
:content => /def remove/ }
end
else
puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Darcs test repository not found."
end
end

View File

@ -102,7 +102,6 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
end
end
else
puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Filesystem test repository not found."
end
end

View File

@ -231,7 +231,6 @@ class RepositoriesGitControllerTest < ActionController::TestCase
end
end
else
puts "Git test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Git test repository not found."
end
end

View File

@ -362,7 +362,6 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
end
end
else
puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Mercurial test repository not found."
end
end

View File

@ -285,7 +285,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
assert_tag :tag => 'h2', :content => /@ 8/
end
else
puts "Subversion test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end
should "Subversion test repository not found."
end
end

View File

@ -55,7 +55,7 @@ begin
assert_equal version, @adapter.class.scm_command_version
end
else
puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!"
should "Bazaar test repository NOT FOUND."
def test_fake; assert true end
end
end

View File

@ -68,7 +68,7 @@ begin
assert_equal version, @adapter.class.scm_command_version
end
else
puts "Cvs test repository NOT FOUND. Skipping unit tests !!!"
should "CVS test repository not found."
def test_fake; assert true end
end
end

View File

@ -54,7 +54,7 @@ begin
end
else
puts "Darcs test repository NOT FOUND. Skipping unit tests !!!"
should "Darcs test repository not found."
def test_fake; assert true end
end
end

View File

@ -46,7 +46,7 @@ class FilesystemAdapterTest < ActiveSupport::TestCase
assert_equal "TEST CAT\n", @adapter.cat("/test", 1)
end
else
puts "Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS."
should "Filesystem test repository not found."
def test_fake; assert true end
end
end

View File

@ -239,7 +239,7 @@ begin
end
else
puts "Git test repository NOT FOUND. Skipping unit tests !!!"
should "Git test repository not found."
def test_fake; assert true end
end
end

View File

@ -353,7 +353,7 @@ begin
assert File.exist?(@adapter.class.template_path_for(version))
end
else
puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!"
should "Mercurial test repository not found."
def test_fake; assert true end
end
end

View File

@ -47,7 +47,7 @@ begin
end
else
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
should "Subversion test repository not found."
def test_fake; assert true end
end
end

View File

@ -96,7 +96,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
assert_nil changeset.next
end
else
puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!"
should "Bazaar test repository not found."
def test_fake; assert true end
end
end

View File

@ -98,7 +98,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
assert_equal entries[2].lastrev.author, 'LANG'
end
else
puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
should "CVS test repository not found."
def test_fake; assert true end
end
end

View File

@ -65,7 +65,7 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
end
end
else
puts "Darcs test repository NOT FOUND. Skipping unit tests !!!"
should "Darcs test repository not found."
def test_fake; assert true end
end
end

View File

@ -45,7 +45,7 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
end
else
puts "Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS."
should "Filesystem test repository not found."
def test_fake; assert true end
end
end

View File

@ -305,7 +305,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
end
end
else
puts "Git test repository NOT FOUND. Skipping unit tests !!!"
should "Git test repository not found."
def test_fake; assert true end
end
end

View File

@ -273,7 +273,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
end
end
else
puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!"
should "Mercurial test repository not found."
def test_fake; assert true end
end
end

View File

@ -183,7 +183,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
assert_nil changeset.next
end
else
puts "Subversion test repository NOT FOUND. Skipping unit tests !!!"
should "Subversion test repository not found."
def test_fake; assert true end
end
end