@@ -265,10 +265,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
265 | 265 | end |
|
266 | 266 | |
|
267 | 267 | def test_entry_binary_force_download |
|
268 | get :entry, :id => PRJ_ID, :rev => 1, | |
|
269 | :path => repository_path_hash(['images', 'edit.png'])[:param] | |
|
270 | assert_response :success | |
|
271 | assert_equal 'image/png', @response.content_type | |
|
268 | # TODO: add a binary file which is not an image to the test repo | |
|
272 | 269 | end |
|
273 | 270 | |
|
274 | 271 | def test_directory_entry |
@@ -183,11 +183,11 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||
|
183 | 183 | end |
|
184 | 184 | end |
|
185 | 185 | |
|
186 |
def test_entry_should_ |
|
|
186 | def test_entry_should_display_images | |
|
187 | 187 | get :entry, :id => PRJ_ID, |
|
188 | 188 | :path => repository_path_hash(['subversion_test', 'folder', 'subfolder', 'rubylogo.gif'])[:param] |
|
189 | 189 | assert_response :success |
|
190 | assert_equal 'inline; filename="rubylogo.gif"', response.headers['Content-Disposition'] | |
|
190 | assert_template 'entry' | |
|
191 | 191 | end |
|
192 | 192 | |
|
193 | 193 | def test_entry_at_given_revision |
General Comments 0
You need to be logged in to leave comments.
Login now