public
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/francois/piston.git
Search Repo:
Adding revision`s tests.
tapajos (author)
Thu May 08 17:08:16 -0700 2008
francois (committer)
Fri May 09 08:25:33 -0700 2008
commit  7743b51ab5fd785162108a9f6dee0e5cfaefa706
tree    d0355f997542f233984aaa0410207a15e914bb66
parent  b19eef6e2bc92fd0af1c3470d6af92a57b98be43
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
0
@@ -1 +1,33 @@
0
+require File.dirname(__FILE__) + "/../test_helper"
0
+
0
+class TestRevision < Test::Unit::TestCase
0
+
0
+ def setup
0
+ @repository = Piston::Repository.new("url")
0
+ @revision_number = "1"
0
+ @revision = Piston::Revision.new(@repository, @revision_number)
0
+ end
0
+
0
+ def test_initialize
0
+ assert_equal @repository, @revision.instance_variable_get(:@repository)
0
+ assert_equal @revision_number, @revision.instance_variable_get(:@revision)
0
+ end
0
+
0
+ def test_repository
0
+ assert_equal @repository, @revision.repository
0
+ end
0
+
0
+ def test_revision
0
+ assert_equal @revision_number, @revision.revision
0
+ end
0
+
0
+ def test_name
0
+ assert_equal @revision_number, @revision.name
0
+ end
0
+
0
+ def test_to_s
0
+ assert_equal "Piston::Revision(url@1)", @revision.to_s
0
+ end
0
+
0
+end

Comments

    No one has commented yet.