mirror of
https://github.com/redmine/redmine.git
synced 2026-03-05 12:01:23 +01:00
route: scm: split entry and raw actions
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -78,8 +78,7 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_entry_download_no_extension
|
||||
get :entry, :id => PRJ_ID, :path => repository_path_hash(['test'])[:param],
|
||||
:format => 'raw'
|
||||
get :raw, :id => PRJ_ID, :path => repository_path_hash(['test'])[:param]
|
||||
assert_response :success
|
||||
assert_equal 'application/octet-stream', @response.content_type
|
||||
end
|
||||
|
||||
@@ -216,9 +216,8 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||
@repository.fetch_changesets
|
||||
@project.reload
|
||||
assert_equal NUM_REV, @repository.changesets.count
|
||||
get :entry, :id => PRJ_ID,
|
||||
:path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param],
|
||||
:format => 'raw'
|
||||
get :raw, :id => PRJ_ID,
|
||||
:path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
|
||||
assert_response :success
|
||||
assert_equal 'attachment; filename="helloworld.c"', @response.headers['Content-Disposition']
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user