@@ -21,6 +21,19 begin | |||||
21 | end |
|
21 | end | |
22 | end |
|
22 | end | |
23 |
|
23 | |||
|
24 | def test_cat | |||
|
25 | cat = @adapter.cat('directory/document.txt') | |||
|
26 | assert cat =~ /Write the contents of a file as of a given revision to standard output/ | |||
|
27 | end | |||
|
28 | ||||
|
29 | def test_annotate | |||
|
30 | annotate = @adapter.annotate('doc-mkdir.txt') | |||
|
31 | assert_equal 17, annotate.lines.size | |||
|
32 | assert_equal '1', annotate.revisions[0].identifier | |||
|
33 | assert_equal 'jsmith@', annotate.revisions[0].author | |||
|
34 | assert_equal 'mkdir', annotate.lines[0] | |||
|
35 | end | |||
|
36 | ||||
24 | private |
|
37 | private | |
25 |
|
38 | |||
26 | def test_scm_version_for(scm_command_version, version) |
|
39 | def test_scm_version_for(scm_command_version, version) |
@@ -68,19 +68,6 class RepositoryBazaarTest < ActiveSupport::TestCase | |||||
68 | assert_equal 'file', entries.last.kind |
|
68 | assert_equal 'file', entries.last.kind | |
69 | assert_equal 'edit.png', entries.last.name |
|
69 | assert_equal 'edit.png', entries.last.name | |
70 | end |
|
70 | end | |
71 |
|
||||
72 | def test_cat |
|
|||
73 | cat = @repository.scm.cat('directory/document.txt') |
|
|||
74 | assert cat =~ /Write the contents of a file as of a given revision to standard output/ |
|
|||
75 | end |
|
|||
76 |
|
||||
77 | def test_annotate |
|
|||
78 | annotate = @repository.scm.annotate('doc-mkdir.txt') |
|
|||
79 | assert_equal 17, annotate.lines.size |
|
|||
80 | assert_equal '1', annotate.revisions[0].identifier |
|
|||
81 | assert_equal 'jsmith@', annotate.revisions[0].author |
|
|||
82 | assert_equal 'mkdir', annotate.lines[0] |
|
|||
83 | end |
|
|||
84 | else |
|
71 | else | |
85 | puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!" |
|
72 | puts "Bazaar test repository NOT FOUND. Skipping unit tests !!!" | |
86 | def test_fake; assert true end |
|
73 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now