##// END OF EJS Templates
scm: mercurial: add test of binary file should be force download in functional test (#6256)....
Toshi MARUYAMA -
r5082:9000cdbf2fba
parent child
Show More
@@ -219,6 +219,13 class RepositoriesMercurialControllerTest < ActionController::TestCase
219 219 assert @response.body.include?('WITHOUT ANY WARRANTY')
220 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 229 def test_directory_entry
223 230 get :entry, :id => PRJ_ID, :path => ['sources']
224 231 assert_response :success
@@ -226,7 +233,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
226 233 assert_not_nil assigns(:entry)
227 234 assert_equal 'sources', assigns(:entry).name
228 235 end
229
236
230 237 def test_diff
231 238 @repository.fetch_changesets
232 239 @repository.reload
General Comments 0
You need to be logged in to leave comments. Login now