diff options
Diffstat (limited to 'test/integration/api_test/issue_categories_test.rb')
-rw-r--r-- | test/integration/api_test/issue_categories_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb index a7d01876f..a1fd70f3f 100644 --- a/test/integration/api_test/issue_categories_test.rb +++ b/test/integration/api_test/issue_categories_test.rb @@ -70,7 +70,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base :params => {:issue_category => {:name => 'API Update'}}, :headers => credentials('jsmith') end - assert_response :ok + assert_response :no_content assert_equal '', @response.body assert_equal 'API Update', IssueCategory.find(2).name end @@ -91,7 +91,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base assert_difference 'IssueCategory.count', -1 do delete '/issue_categories/1.xml', :headers => credentials('jsmith') end - assert_response :ok + assert_response :no_content assert_equal '', @response.body assert_nil IssueCategory.find_by_id(1) end @@ -107,7 +107,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base :headers => credentials('jsmith') end end - assert_response :ok + assert_response :no_content assert_equal '', @response.body assert_nil IssueCategory.find_by_id(1) end |