Skip to content

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

Refactor create_resource_spec to use status_code/explanation columns

Aaron Contrerasb1821801ef1a
diff --git a/spec/requests/api/v3/projects/create_resource_spec.rb b/spec/requests/api/v3/projects/create_resource_spec.rb
index 86df9c40db0..a57c7ccc73e 100644
--- a/spec/requests/api/v3/projects/create_resource_spec.rb
+++ b/spec/requests/api/v3/projects/create_resource_spec.rb
@@ -107,12 +107,9 @@ describe 'API v3 Project resource create', content_type: :json do
.at_path("statusExplanation")
end
- it 'creates a project and a status' do
+ it 'creates a project' do
expect(Project.count)
.to be(1)
-
- expect(Projects::Status.count)
- .to be(1)
end
end