@@ -170,6 +170,24 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
170 | 170 | end |
|
171 | 171 | end |
|
172 | 172 | |
|
173 | def test_show_tag | |
|
174 | @repository.fetch_changesets | |
|
175 | @repository.reload | |
|
176 | [ | |
|
177 | @tag_char_1, | |
|
178 | 'tag_test.00', | |
|
179 | 'tag-init-revision' | |
|
180 | ].each do |tag| | |
|
181 | get :show, :id => 3, :rev => tag | |
|
182 | assert_response :success | |
|
183 | assert_template 'show' | |
|
184 | assert_not_nil assigns(:entries) | |
|
185 | assert assigns(:entries).size > 0 | |
|
186 | assert_not_nil assigns(:changesets) | |
|
187 | assigns(:changesets).size > 0 | |
|
188 | end | |
|
189 | end | |
|
190 | ||
|
173 | 191 | def test_changes |
|
174 | 192 | get :changes, :id => 3, :path => ['images', 'edit.png'] |
|
175 | 193 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now