@@ -149,6 +149,27 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
149 | end |
|
149 | end | |
150 | end |
|
150 | end | |
151 |
|
151 | |||
|
152 | def test_show_branch | |||
|
153 | @repository.fetch_changesets | |||
|
154 | @repository.reload | |||
|
155 | [ | |||
|
156 | 'default', | |||
|
157 | @branch_char_1, | |||
|
158 | 'branch (1)[2]&,%.-3_4', | |||
|
159 | @branch_char_0, | |||
|
160 | 'test_branch.latin-1', | |||
|
161 | 'test-branch-00', | |||
|
162 | ].each do |bra| | |||
|
163 | get :show, :id => 3, :rev => bra | |||
|
164 | assert_response :success | |||
|
165 | assert_template 'show' | |||
|
166 | assert_not_nil assigns(:entries) | |||
|
167 | assert assigns(:entries).size > 0 | |||
|
168 | assert_not_nil assigns(:changesets) | |||
|
169 | assigns(:changesets).size > 0 | |||
|
170 | end | |||
|
171 | end | |||
|
172 | ||||
152 | def test_changes |
|
173 | def test_changes | |
153 | get :changes, :id => 3, :path => ['images', 'edit.png'] |
|
174 | get :changes, :id => 3, :path => ['images', 'edit.png'] | |
154 | assert_response :success |
|
175 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now