Don't use render :text => "".

git-svn-id: http://svn.redmine.org/redmine/trunk@15731 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-07-21 20:49:14 +00:00
parent 596a196f2e
commit 8b107b6058
8 changed files with 67 additions and 7 deletions

View File

@@ -74,6 +74,7 @@ class MailHandlerControllerTest < Redmine::ControllerTest
post :index, :key => 'secret', :email => IO.read(File.join(FIXTURES_PATH, 'ticket_on_given_project.eml'))
end
assert_response 403
assert_include 'Access denied', response.body
end
def test_should_not_allow_with_wrong_key
@@ -84,6 +85,7 @@ class MailHandlerControllerTest < Redmine::ControllerTest
post :index, :key => 'wrong', :email => IO.read(File.join(FIXTURES_PATH, 'ticket_on_given_project.eml'))
end
assert_response 403
assert_include 'Access denied', response.body
end
def test_new