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
[#66093] Use RSpec short form for presence-validation
Tobias Dillmann4d0e0a7c5e3f
diff --git a/spec/models/calculated_value_error_spec.rb b/spec/models/calculated_value_error_spec.rbindex 24f74771608..31eeb8f2fd6 100644--- a/spec/models/calculated_value_error_spec.rb+++ b/spec/models/calculated_value_error_spec.rb@@ -35,13 +35,8 @@ RSpec.describe CalculatedValueError doshared_let(:custom_field) { create(:custom_field) }describe "validations" do- it "validates customized_id and customized_type is present" do- expect(subject).to validate_presence_of(:customized)- end-- it "validates custom_field_id is present" do- expect(subject).to validate_presence_of(:custom_field_id)- end+ it { is_expected.to validate_presence_of(:customized) }+ it { is_expected.to validate_presence_of(:custom_field_id) }it "validates uniqueness of customized scoped to custom_field_id and error_code" do# Create an initial record