Fixed that 200 API responses have a body containing one space (#11388).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9975 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-14 08:13:55 +00:00
parent 6bf60e8c20
commit 18f693f9f7
19 changed files with 48 additions and 19 deletions
@@ -120,6 +120,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest
put '/versions/2.xml', {:version => {:name => 'API update'}}, credentials('jsmith')
assert_response :ok
assert_equal '', @response.body
assert_equal 'API update', Version.find(2).name
end
end
@@ -131,6 +132,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest
end
assert_response :ok
assert_equal '', @response.body
assert_nil Version.find_by_id(3)
end
end