@@ -79,7 +79,7 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
79 | @repository.fetch_changesets |
|
79 | @repository.fetch_changesets | |
80 | @project.reload |
|
80 | @project.reload | |
81 | assert_equal NUM_REV, @repository.changesets.count |
|
81 | assert_equal NUM_REV, @repository.changesets.count | |
82 | get :show, :id => PRJ_ID, :path => ['images'] |
|
82 | get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param] | |
83 | assert_response :success |
|
83 | assert_response :success | |
84 | assert_template 'show' |
|
84 | assert_template 'show' | |
85 | assert_not_nil assigns(:entries) |
|
85 | assert_not_nil assigns(:entries) | |
@@ -95,7 +95,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
95 | @repository.fetch_changesets |
|
95 | @repository.fetch_changesets | |
96 | @project.reload |
|
96 | @project.reload | |
97 | assert_equal NUM_REV, @repository.changesets.count |
|
97 | assert_equal NUM_REV, @repository.changesets.count | |
98 |
get :show, :id => PRJ_ID, :path => ['images'], |
|
98 | get :show, :id => PRJ_ID, :path => repository_path_hash(['images'])[:param], | |
|
99 | :rev => 1 | |||
99 | assert_response :success |
|
100 | assert_response :success | |
100 | assert_template 'show' |
|
101 | assert_template 'show' | |
101 | assert_not_nil assigns(:entries) |
|
102 | assert_not_nil assigns(:entries) | |
@@ -107,7 +108,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
107 | @repository.fetch_changesets |
|
108 | @repository.fetch_changesets | |
108 | @project.reload |
|
109 | @project.reload | |
109 | assert_equal NUM_REV, @repository.changesets.count |
|
110 | assert_equal NUM_REV, @repository.changesets.count | |
110 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'] |
|
111 | get :entry, :id => PRJ_ID, | |
|
112 | :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param] | |||
111 | assert_response :success |
|
113 | assert_response :success | |
112 | assert_template 'entry' |
|
114 | assert_template 'entry' | |
113 | assert_no_tag :tag => 'td', |
|
115 | assert_no_tag :tag => 'td', | |
@@ -121,7 +123,9 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
121 | @repository.fetch_changesets |
|
123 | @repository.fetch_changesets | |
122 | @project.reload |
|
124 | @project.reload | |
123 | assert_equal NUM_REV, @repository.changesets.count |
|
125 | assert_equal NUM_REV, @repository.changesets.count | |
124 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], :rev => 2 |
|
126 | get :entry, :id => PRJ_ID, | |
|
127 | :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param], | |||
|
128 | :rev => 2 | |||
125 | assert_response :success |
|
129 | assert_response :success | |
126 | assert_template 'entry' |
|
130 | assert_template 'entry' | |
127 | # this line was removed in r3 |
|
131 | # this line was removed in r3 | |
@@ -135,7 +139,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
135 | @repository.fetch_changesets |
|
139 | @repository.fetch_changesets | |
136 | @project.reload |
|
140 | @project.reload | |
137 | assert_equal NUM_REV, @repository.changesets.count |
|
141 | assert_equal NUM_REV, @repository.changesets.count | |
138 |
get :entry, :id => PRJ_ID, |
|
142 | get :entry, :id => PRJ_ID, | |
|
143 | :path => repository_path_hash(['sources', 'zzz.c'])[:param] | |||
139 | assert_tag :tag => 'p', |
|
144 | assert_tag :tag => 'p', | |
140 | :attributes => { :id => /errorExplanation/ }, |
|
145 | :attributes => { :id => /errorExplanation/ }, | |
141 | :content => /The entry or revision was not found in the repository/ |
|
146 | :content => /The entry or revision was not found in the repository/ | |
@@ -146,7 +151,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
146 | @repository.fetch_changesets |
|
151 | @repository.fetch_changesets | |
147 | @project.reload |
|
152 | @project.reload | |
148 | assert_equal NUM_REV, @repository.changesets.count |
|
153 | assert_equal NUM_REV, @repository.changesets.count | |
149 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], |
|
154 | get :entry, :id => PRJ_ID, | |
|
155 | :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param], | |||
150 | :format => 'raw' |
|
156 | :format => 'raw' | |
151 | assert_response :success |
|
157 | assert_response :success | |
152 | end |
|
158 | end | |
@@ -156,7 +162,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
156 | @repository.fetch_changesets |
|
162 | @repository.fetch_changesets | |
157 | @project.reload |
|
163 | @project.reload | |
158 | assert_equal NUM_REV, @repository.changesets.count |
|
164 | assert_equal NUM_REV, @repository.changesets.count | |
159 |
get :entry, :id => PRJ_ID, |
|
165 | get :entry, :id => PRJ_ID, | |
|
166 | :path => repository_path_hash(['sources'])[:param] | |||
160 | assert_response :success |
|
167 | assert_response :success | |
161 | assert_template 'show' |
|
168 | assert_template 'show' | |
162 | assert_not_nil assigns(:entry) |
|
169 | assert_not_nil assigns(:entry) | |
@@ -206,7 +213,8 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
206 | @repository.fetch_changesets |
|
213 | @repository.fetch_changesets | |
207 | @project.reload |
|
214 | @project.reload | |
208 | assert_equal NUM_REV, @repository.changesets.count |
|
215 | assert_equal NUM_REV, @repository.changesets.count | |
209 | get :annotate, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'] |
|
216 | get :annotate, :id => PRJ_ID, | |
|
217 | :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param] | |||
210 | assert_response :success |
|
218 | assert_response :success | |
211 | assert_template 'annotate' |
|
219 | assert_template 'annotate' | |
212 | # 1.1 line |
|
220 | # 1.1 line |
General Comments 0
You need to be logged in to leave comments.
Login now