@@ -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 | |
@@ -226,7 +233,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
226 | assert_not_nil assigns(:entry) |
|
233 | assert_not_nil assigns(:entry) | |
227 | assert_equal 'sources', assigns(:entry).name |
|
234 | assert_equal 'sources', assigns(:entry).name | |
228 | end |
|
235 | end | |
229 |
|
236 | |||
230 | def test_diff |
|
237 | def test_diff | |
231 | @repository.fetch_changesets |
|
238 | @repository.fetch_changesets | |
232 | @repository.reload |
|
239 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now