Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 2331 Bytes
1 | require 'test_util' |
2 | require 'time' |
3 | |
4 | class RepositoryNodeTest < Test::Unit::TestCase |
5 | include ActionSubversionTestUtil |
6 | |
7 | def setup |
8 | setup_repos |
9 | @fs = ActionSubversion::Base.fs |
10 | @node = ActionSubversion::RepositoryNode.new('html_file.html', @fs) |
11 | end |
12 | |
13 | def test_path_will_always_be_canonical |
14 | repos = nil |
15 | assert_nothing_raised { repos = ActionSubversion::SvnRepository.new(@full_repos_path) } |
16 | assert_not_nil repos |
17 | end |
18 | |
19 | def test_non_canonical_path_will_always_be_canonical |
20 | repos = nil |
21 | assert_nothing_raised { repos = ActionSubversion::SvnRepository.new(@full_repos_path) } |
22 | assert_not_nil repos |
23 | end |
24 | |
25 | def test_get_past_revision |
26 | rev_node = ActionSubversion::RepositoryNode.new('file1.txt', @fs, 3) |
27 | past_rev_node = ActionSubversion::RepositoryNode.new('file1.txt', @fs, 1) |
28 | assert_equal 3, rev_node.revision |
29 | assert_equal 1, past_rev_node.revision |
30 | end |
31 | |
32 | def test_node_proplist |
33 | exp = {} |
34 | assert_equal exp, @node.proplist |
35 | # TODO: more proplist tests |
36 | end |
37 | |
38 | def test_path |
39 | assert_equal 'html_file.html', @node.path |
40 | n = ActionSubversion::RepositoryNode.new('/html/html_file.html', @fs) |
41 | assert_equal '/html/html_file.html', n.path |
42 | end |
43 | |
44 | def test_revision |
45 | assert_equal 1, @node.revision |
46 | end |
47 | |
48 | def test_name |
49 | assert_equal 'html_file.html', @node.name |
50 | end |
51 | |
52 | def test_is_dir |
53 | assert !@node.dir? |
54 | end |
55 | |
56 | def test_is_file |
57 | assert @node.file? |
58 | end |
59 | |
60 | def test_is_textual |
61 | assert @node.is_textual? |
62 | end |
63 | |
64 | def test_is_image |
65 | assert !@node.is_image? |
66 | end |
67 | |
68 | def test_is_binary |
69 | assert !@node.is_binary? |
70 | end |
71 | |
72 | def test_author |
73 | assert_equal 'johan', @node.author |
74 | end |
75 | |
76 | def test_date |
77 | assert_equal Time, @node.date.class |
78 | expected_date = Time.parse('Sat May 28 22:58:00 CEST 2005') |
79 | assert_equal expected_date.to_s, @node.date.to_s |
80 | end |
81 | |
82 | def test_log |
83 | assert_equal 'importing test data', @node.log |
84 | end |
85 | |
86 | def test_mime_type |
87 | assert_equal 'text/html', @node.mime_type |
88 | end |
89 | |
90 | def test_contents |
91 | expected = "<html>\n\t<head>\n\t\t<title>html test doc</title>\n\t</head>\n<body>\n\t<h1>Header!</h1>\n</body>\n</html>\n" |
92 | assert_equal expected, @node.contents |
93 | end |
94 | |
95 | def test_size |
96 | assert_equal 96, @node.size |
97 | end |
98 | |
99 | def teardown |
100 | teardown_repos |
101 | end |
102 | |
103 | end |