summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-11 12:06:05 +0000
commit099ba68836b9ff4544df3c46b6f5cb8a6081a185 (patch)
tree15aec786111288b5c4ee82af2046af566b728300 /test/unit/repository_cvs_test.rb
parent0d63e9e8fde36c88cf60095f814e5b76edb54027 (diff)
downloadredmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.tar.gz
redmine-099ba68836b9ff4544df3c46b6f5cb8a6081a185.zip
scm: cvs: fix missing author, revision and comment in tree view (#4270).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5093 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 0fd81615b..2d5db034d 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -89,6 +89,18 @@ class RepositoryCvsTest < ActiveSupport::TestCase
assert entries.detect {|e| e.name == 'watchers_controller.rb'}
assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'}
end
+
+ def test_entries_rev3
+ @repository.fetch_changesets
+ @repository.reload
+ entries = @repository.entries('', '3')
+ assert_equal 3, entries.size
+ assert_equal entries[2].name, "README"
+ assert_equal entries[2].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22)
+ assert_equal entries[2].lastrev.identifier, '3'
+ assert_equal entries[2].lastrev.revision, '3'
+ assert_equal entries[2].lastrev.author, 'LANG'
+ end
else
puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
def test_fake; assert true end
0/stable26 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Group/DeleteTest.php
blob: 3b29fb4e6ad362af396f1c0c228366aac85feaed (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149