@@ -219,6 +219,13 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
219 | assert @response.body.include?('WITHOUT ANY WARRANTY') |
|
219 | assert @response.body.include?('WITHOUT ANY WARRANTY') | |
220 | end |
|
220 | end | |
221 |
|
221 | |||
|
222 | def test_entry_binary_force_download | |||
|
223 | get :entry, :id => PRJ_ID, :rev => 1, :path => ['images', 'edit.png'] | |||
|
224 | assert_response :success | |||
|
225 | # TODO: 'image/png' | |||
|
226 | assert_equal 'application/octet-stream', @response.content_type | |||
|
227 | end | |||
|
228 | ||||
222 | def test_directory_entry |
|
229 | def test_directory_entry | |
223 | get :entry, :id => PRJ_ID, :path => ['sources'] |
|
230 | get :entry, :id => PRJ_ID, :path => ['sources'] | |
224 | assert_response :success |
|
231 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now