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