public
Fork of francois/piston
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/tapajos/piston.git
Renamed PistonTestCase to Piston::TestCase
francois (author)
Mon Aug 25 06:46:18 -0700 2008
commit  398cb7516b7111396e7157c33981176a68bb202c
tree    127d75ea5d934d4a0f003e513327e57e11d1fe23
parent  e7c5fc6897c532a1e4b7a41d204938667183054b
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestGitGit < PistonTestCase
0
+class TestGitGit < Piston::TestCase
0
   attr_reader :root_path, :repos_path, :parent_path, :wc_path
0
 
0
   def setup
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestGitSvn < PistonTestCase
0
+class TestGitSvn < Piston::TestCase
0
   attr_reader :root_path, :parent_path, :repos_path, :wc_path
0
 
0
   def setup
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestImportSvnGit < PistonTestCase
0
+class TestImportSvnGit < Piston::TestCase
0
   attr_reader :root_path, :repos_path, :wc_path
0
 
0
   def setup
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestImportSvnSvn < PistonTestCase
0
+class TestImportSvnSvn < Piston::TestCase
0
   attr_reader :root_path, :repos_path, :wc_path
0
 
0
   def setup
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@ module Test
0
   end
0
 end
0
 
0
-class PistonTestCase < Test::Unit::TestCase
0
+class Piston::TestCase < Test::Unit::TestCase
0
   class << self
0
     def logger
0
       @@logger ||= Log4r::Logger["test"]
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitCommitCheckout < PistonTestCase
0
+class Piston::Git::TestGitCommitCheckout < Piston::TestCase
0
   def setup
0
     super
0
     @repos = mock("repos")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitCommitEach < PistonTestCase
0
+class Piston::Git::TestGitCommitEach < Piston::TestCase
0
   def setup
0
     super
0
     @repos = mock("repository")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitCommitRememberance < PistonTestCase
0
+class Piston::Git::TestGitCommitRememberance < Piston::TestCase
0
   def setup
0
     super
0
     @repos = mock("repository")
...
1
2
3
 
4
5
6
...
31
32
33
34
35
 
...
1
2
 
3
4
5
6
...
31
32
33
 
34
35
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitCommitValidation < PistonTestCase
0
+class Piston::Git::TestGitCommitValidation < Piston::TestCase
0
   def setup
0
     super
0
     @repository = mock("repository")
0
@@ -31,4 +31,4 @@ class Piston::Git::TestGitCommitValidation < PistonTestCase
0
   INFO = <<EOF
0
 a7c46c702243f145a4089b0cb33d189870f1ae53  HEAD
0
 EOF
0
-end
0
\ No newline at end of file
0
+end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitRepositoryAt < PistonTestCase
0
+class Piston::Git::TestGitRepositoryAt < Piston::TestCase
0
   def setup
0
     super
0
     @repos = Piston::Git::Repository.new("git://a.repos.com/project.git")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitRepositoryBasename < PistonTestCase
0
+class Piston::Git::TestGitRepositoryBasename < Piston::TestCase
0
   def test_basename_is_urls_last_component_minus_dot_git
0
     assert_equal "piston", basename("git://github.com/francois/piston.git")
0
   end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitRepositoryBranchname < PistonTestCase
0
+class Piston::Git::TestGitRepositoryBranchname < Piston::TestCase
0
   def test_branchname_is_nil_when_no_branch_in_url
0
     assert_nil Piston::Git::Repository.new("git://github.com/francois/piston.git").branchname
0
   end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitRepositoryGuessing < PistonTestCase
0
+class Piston::Git::TestGitRepositoryGuessing < Piston::TestCase
0
   def test_understands_git_protocol
0
     assert Piston::Git::Repository.understands_url?("git://github.com/francois/piston.git")
0
   end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyCopying < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyCopying < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyCreation < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyCreation < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyExistence < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyExistence < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = Pathname.new("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyFinalization < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyFinalization < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyGuessing < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyGuessing < Piston::TestCase
0
   def setup
0
     super
0
     @dir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestMerging < PistonTestCase
0
+class Piston::Git::TestMerging < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Git::TestGitWorkingCopyRememberance < PistonTestCase
0
+class Piston::Git::TestGitWorkingCopyRememberance < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRepositoryAt < PistonTestCase
0
+class Piston::Svn::TestSvnRepositoryAt < Piston::TestCase
0
   def setup
0
     super
0
     @repos = Piston::Svn::Repository.new("http://bla.com/svn/repos/trunk")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRepositoryBasename < PistonTestCase
0
+class Piston::Svn::TestSvnRepositoryBasename < Piston::TestCase
0
   def test_basename_is_urls_path_last_component
0
     assert_equal "piston", basename("http://svn.rubyforge.org/var/svn/piston")
0
   end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRepositoryGuessing < PistonTestCase
0
+class Piston::Svn::TestSvnRepositoryGuessing < Piston::TestCase
0
   def test_guesses_with_svn_protocol
0
     assert Piston::Svn::Repository.understands_url?("svn://a.host.com/")
0
   end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRevisionCheckout < PistonTestCase
0
+class Piston::Svn::TestSvnRevisionCheckout < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = Pathname.new("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRevisionEach < PistonTestCase
0
+class Piston::Svn::TestSvnRevisionEach < Piston::TestCase
0
   def setup
0
     super
0
     @repos = mock("repository")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRevisionRememberance < PistonTestCase
0
+class Piston::Svn::TestSvnRevisionRememberance < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
47
48
49
50
51
 
...
1
2
 
3
4
5
6
...
47
48
49
 
50
51
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnRevisionValidation < PistonTestCase
0
+class Piston::Svn::TestSvnRevisionValidation < Piston::TestCase
0
   def setup
0
     super
0
     @repository = mock("repository")
0
@@ -47,4 +47,4 @@ Last Changed Author: francois
0
 Last Changed Rev: 1232
0
 Last Changed Date: 2008-04-06 21:57:10 -0400 (Sun, 06 Apr 2008)
0
 EOF
0
-end
0
\ No newline at end of file
0
+end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyCopying < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyCopying < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyCreation < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyCreation < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyExistence < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyExistence < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = Pathname.new("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestWorkingCopyExternals < PistonTestCase
0
+class Piston::Svn::TestWorkingCopyExternals < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyFinalization < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyFinalization < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyGuessing < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyGuessing < Piston::TestCase
0
   def setup
0
     super
0
     @dir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestMerging < PistonTestCase
0
+class Piston::Svn::TestMerging < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = Pathname.new("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../../test_helper")
0
 
0
-class Piston::Svn::TestSvnWorkingCopyRememberance < PistonTestCase
0
+class Piston::Svn::TestSvnWorkingCopyRememberance < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestImport < PistonTestCase
0
+class TestImport < Piston::TestCase
0
   def setup
0
     super
0
     @wc = stub_everything("working_copy")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestInfo < PistonTestCase
0
+class TestInfo < Piston::TestCase
0
   def setup
0
     super
0
     @values = {"lock" => false}
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestLockUnlock < PistonTestCase
0
+class TestLockUnlock < Piston::TestCase
0
   def setup
0
     super
0
     @values = {"lock" => false}
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestRepository < PistonTestCase
0
+class TestRepository < Piston::TestCase
0
   def setup
0
     super
0
     Piston::Repository.send(:handlers).clear
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
0
 
0
-class TestRevision < PistonTestCase
0
+class TestRevision < Piston::TestCase
0
   def setup
0
     super
0
     @repository = mock("repository")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
-class TestWorkingCopyGuessing < PistonTestCase
0
+class TestWorkingCopyGuessing < Piston::TestCase
0
   def setup
0
     super
0
     Piston::WorkingCopy.send(:handlers).clear
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
-class TestWorkingCopyInfo < PistonTestCase
0
+class TestWorkingCopyInfo < Piston::TestCase
0
   def setup
0
     super
0
     @path = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
-class TestWorkingCopyRememberance < PistonTestCase
0
+class TestWorkingCopyRememberance < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
...
1
2
3
 
4
5
6
...
60
61
62
63
64
 
...
1
2
 
3
4
5
6
...
60
61
62
 
63
64
0
@@ -1,6 +1,6 @@
0
 require File.expand_path("#{File.dirname(__FILE__)}/../../test_helper")
0
 
0
-class TestWorkingCopyValidate < PistonTestCase
0
+class TestWorkingCopyValidate < Piston::TestCase
0
   def setup
0
     super
0
     @wcdir = mkpath("tmp/wc")
0
@@ -60,4 +60,4 @@ class TestWorkingCopyValidate < PistonTestCase
0
   def touch(path)
0
     File.open(path, "wb") {|f| f.write ""}
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.