Slight changes in functional tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2235 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user