summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:20:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:20:02 +0000
commit8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4 (patch)
tree0c7d861eb6d8cdcb32b4dd4c91e8c7c3f91faa37 /test/functional
parentaaca2c50e563287f16cbce230ddbcc5d4e6dc972 (diff)
downloadredmine-8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4.tar.gz
redmine-8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4.zip
Move VersionsController#download to AttachmentsController.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1685 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/attachments_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index d088c0b0f..af73eb77e 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -56,4 +56,9 @@ class AttachmentsControllerTest < Test::Unit::TestCase
assert_response :success
assert_equal 'application/x-ruby', @response.content_type
end
+
+ def test_anonymous_on_private_private
+ get :download, :id => 7
+ assert_redirected_to 'account/login'
+ end
end