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:
Use the publicly provided methods to test Piston::Revision.  No need to 
muck about in the internals.
francois (author)
Fri May 09 07:56:01 -0700 2008
commit  c00108bd71f25457ad0ab5a7a92a25647cba7eff
tree    94537b9a2432a65e77cb15107bbab2e99c654760
parent  46ed4501e7a9620227373fe600b8124d582daaf9
...
37
38
39
40
 
41
42
43
...
37
38
39
 
40
41
42
43
0
@@ -37,7 +37,7 @@
0
       {}
0
     end
0
 
0
- # Yields each file of this revision in turn to our callers.
0
+ # Yields each file of this revision in turn to our caller.
0
     def each
0
     end
0
 
...
2
3
4
5
 
6
7
8
9
10
11
12
 
 
13
14
15
...
22
23
24
25
26
27
28
29
30
...
2
3
4
 
5
6
7
8
9
10
 
 
11
12
13
14
15
...
22
23
24
 
 
 
 
25
26
0
@@ -2,14 +2,14 @@
0
 
0
 class TestRevision < Test::Unit::TestCase
0
   def setup
0
- @repository = Piston::Repository.new("url")
0
+ @repository = mock("repository")
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
+ assert_equal @repository, @revision.repository
0
+ assert_equal @revision_number, @revision.revision
0
   end
0
 
0
   def test_repository
0
@@ -22,10 +22,6 @@
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
 end

Comments

    No one has commented yet.