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

Merge branch 'dev' into epic/49688-custom-set-of-project-attributes-grouped-in-sections

jjabari-opb4590b4f6425
diff --cc spec/contracts/custom_fields/create_contract_spec.rb
index 1675b253e1e,3717ea3058a..5516be55250
--- a/spec/contracts/custom_fields/create_contract_spec.rb
+++ b/spec/contracts/custom_fields/create_contract_spec.rb
@@@ -26,13 -26,13 +26,13 @@@
# See COPYRIGHT and LICENSE files for more details.
#++
- require 'spec_helper'
- require 'contracts/shared/model_contract_shared_context'
+ require "spec_helper"
+ require "contracts/shared/model_contract_shared_context"
RSpec.describe CustomFields::CreateContract do
- include_context 'ModelContract shared context'
+ include_context "ModelContract shared context"
- let(:cf) { build(:project_custom_field) }
+ let(:cf) { build_stubbed(:project_custom_field) }
let(:contract) do
described_class.new(cf, current_user, options: {})
end
diff --cc spec/contracts/custom_fields/update_contract_spec.rb
index 9f872d6ffb2,66764dfa422..714019f4c40
--- a/spec/contracts/custom_fields/update_contract_spec.rb
+++ b/spec/contracts/custom_fields/update_contract_spec.rb
@@@ -26,13 -26,13 +26,13 @@@
# See COPYRIGHT and LICENSE files for more details.
#++
- require 'spec_helper'
- require 'contracts/shared/model_contract_shared_context'
+ require "spec_helper"
+ require "contracts/shared/model_contract_shared_context"
RSpec.describe CustomFields::UpdateContract do
- include_context 'ModelContract shared context'
+ include_context "ModelContract shared context"
- let(:cf) { build(:project_custom_field) }
+ let(:cf) { build_stubbed(:project_custom_field) }
let(:contract) do
described_class.new(cf, current_user)
end