summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-05 01:01:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-05 01:01:29 +0000
commitb0414ec1fbabfa8fa84e69eedcf7617fb969fd82 (patch)
tree9c3f633024197ef7756a40c584a25d6545944306 /test/functional
parent569e1b37cc0893cd8b1015a6d12212b205f0fbdf (diff)
downloadredmine-b0414ec1fbabfa8fa84e69eedcf7617fb969fd82.tar.gz
redmine-b0414ec1fbabfa8fa84e69eedcf7617fb969fd82.zip
route: scm: split entry and raw actions
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9625 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb3
-rw-r--r--test/functional/repositories_subversion_controller_test.rb5
2 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index dc9b98041..d6a29ffbf 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -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
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 188dd2fd8..a68501c31 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -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