OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add spec to demonstrate desired behavior with DELETE requests
Aaron Contreras2a3de6cbd599
diff --git a/spec/requests/api/v3/content_type_header_spec.rb b/spec/requests/api/v3/content_type_header_spec.rbindex 2e161496e7f..d8f0567eae0 100644--- a/spec/requests/api/v3/content_type_header_spec.rb+++ b/spec/requests/api/v3/content_type_header_spec.rb@@ -54,5 +54,13 @@ RSpec.describe 'API v3 Content-Type header' doexpect(last_response).to be_okendend++ context 'on a DELETE request' do+ it 'is successful' do+ delete api_v3_paths.work_package(work_package.id)+ expect(last_response.status).not_to eq(406)+ expect(last_response).to be_no_content+ end+ endendend