summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/projects_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-14 08:13:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-14 08:13:55 +0000
commit18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1 (patch)
tree7b5be61fb040bb64bdaff1726a746fe82e149810 /test/integration/api_test/projects_test.rb
parent6bf60e8c206b3c75d18c824cb8b98b10a6d6a69c (diff)
downloadredmine-18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1.tar.gz
redmine-18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1.zip
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
Diffstat (limited to 'test/integration/api_test/projects_test.rb')
-rw-r--r--test/integration/api_test/projects_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index 732d72d46..86e3264e7 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -226,6 +226,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
put '/projects/2.xml', @parameters, credentials('jsmith')
end
assert_response :ok
+ assert_equal '', @response.body
assert_equal 'application/xml', @response.content_type
project = Project.find(2)
assert_equal 'API update', project.name
@@ -238,6 +239,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
put '/projects/2.xml', @parameters, credentials('admin')
end
assert_response :ok
+ assert_equal '', @response.body
project = Project.find(2)
assert_equal ['issue_tracking', 'news', 'time_tracking'], project.enabled_module_names.sort
end
@@ -249,6 +251,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
put '/projects/2.xml', @parameters, credentials('admin')
end
assert_response :ok
+ assert_equal '', @response.body
project = Project.find(2)
assert_equal [1, 3], project.trackers.map(&:id).sort
end
@@ -286,6 +289,7 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
delete '/projects/2.xml', {}, credentials('admin')
end
assert_response :ok
+ assert_equal '', @response.body
assert_nil Project.find_by_id(2)
end
end