mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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:
@@ -44,4 +44,13 @@ class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
|
||||
get '/users/1.xml', {}, credentials('admin')
|
||||
assert_include '<created_on>2006-07-19T17:12:21Z</created_on>', response.body
|
||||
end
|
||||
|
||||
def test_head_response_should_have_empty_body
|
||||
assert_difference('Issue.count', -1) do
|
||||
delete '/issues/6.xml', {}, credentials('jsmith')
|
||||
|
||||
assert_response :ok
|
||||
assert_equal '', response.body
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user