summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/api_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-02-05 08:33:29 +0000
committerGo MAEDA <maeda@farend.jp>2019-02-05 08:33:29 +0000
commit29063283da5d333b990e2ce3a8c6221133f305c9 (patch)
tree2b9ebb6c7003652a378010d65108caab5ab46c67 /test/integration/api_test/api_test.rb
parentf4b2c1a0d3ea597fcaa8dd5a4fd7a2875a7241d3 (diff)
downloadredmine-29063283da5d333b990e2ce3a8c6221133f305c9.tar.gz
redmine-29063283da5d333b990e2ce3a8c6221133f305c9.zip
Ajax Request Returns 200 but an error event is fired instead of success (#30073).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17849 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/api_test.rb')
-rw-r--r--test/integration/api_test/api_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb
index b7723e974..469876f61 100644
--- a/test/integration/api_test/api_test.rb
+++ b/test/integration/api_test/api_test.rb
@@ -49,7 +49,7 @@ class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
def test_head_response_should_have_empty_body
put '/users/7.xml', :params => {:user => {:login => 'foo'}}, :headers => credentials('admin')
- assert_response :ok
+ assert_response :no_content
assert_equal '', response.body
end
end