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

fixed custom value specs

Jonas Jabariaeba29042835
diff --git a/spec/models/custom_value_spec.rb b/spec/models/custom_value_spec.rb
index eb97bddbccd..a2959f03467 100644
--- a/spec/models/custom_value_spec.rb
+++ b/spec/models/custom_value_spec.rb
@@ -126,7 +126,7 @@ RSpec.describe CustomValue do
end
context 'for a boolean custom field without default value' do
- shared_let(:custom_field) { create(:project_custom_field, :boolean) }
+ shared_let(:custom_field) { create(:project_custom_field, :boolean, projects: [project]) }
include_examples 'returns true for generated custom value'
include_examples 'returns false for custom value with value', value: false