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/ } :sibling => { :tag => 'td', :content => /Main purpose/ }
end end
else else
puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!" should "Bazaar test repository not found."
def test_fake; assert true end
end end
end end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -46,7 +46,7 @@ class FilesystemAdapterTest < ActiveSupport::TestCase
assert_equal "TEST CAT\n", @adapter.cat("/test", 1) assert_equal "TEST CAT\n", @adapter.cat("/test", 1)
end end
else 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 def test_fake; assert true end
end end
end end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -45,7 +45,7 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
end end
else 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 def test_fake; assert true end
end end
end end

View File

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

View File

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

View File

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