summaryrefslogtreecommitdiffstats
path: root/test/functional/attachments_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 18:14:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 18:14:51 +0000
commitcd83f72da47f0b6e93a69de04f582c18fca20df8 (patch)
treebb1f945d795667407388db98044a257aeac5bd80 /test/functional/attachments_controller_test.rb
parent260373aed71ede51f4bc46e34283dd66b8be1cd8 (diff)
downloadredmine-cd83f72da47f0b6e93a69de04f582c18fca20df8.tar.gz
redmine-cd83f72da47f0b6e93a69de04f582c18fca20df8.zip
Slight changes in functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2235 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r--test/functional/attachments_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index c60a4a0e0..634d4279b 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -75,7 +75,7 @@ class AttachmentsControllerTest < Test::Unit::TestCase
def test_anonymous_on_private_private
get :download, :id => 7
- assert_redirected_to 'account/login'
+ assert_redirected_to '/login?back_url=http%3A%2F%2Ftest.host%2Fattachments%2Fdownload%2F7'
end
def test_destroy_issue_attachment
@@ -120,7 +120,7 @@ class AttachmentsControllerTest < Test::Unit::TestCase
def test_destroy_without_permission
post :destroy, :id => 3
- assert_redirected_to '/login'
+ assert_redirected_to '/login?back_url=http%3A%2F%2Ftest.host%2Fattachments%2Fdestroy%2F3'
assert Attachment.find_by_id(3)
end
end