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
use a differnt case for invalid work packages in the specs
ulferts78a4b60fdb71
diff --git a/spec/services/work_packages/set_attributes_service_spec.rb b/spec/services/work_packages/set_attributes_service_spec.rbindex c408e07d6c3..d832342b75c 100644--- a/spec/services/work_packages/set_attributes_service_spec.rb+++ b/spec/services/work_packages/set_attributes_service_spec.rb@@ -276,12 +276,9 @@ describe WorkPackages::SetAttributesService,context 'with the actual contract' dolet(:invalid_wp) do- wp = create(:work_package)- wp.start_date = Time.zone.today + 5.days- wp.due_date = Time.zone.today- wp.save!(validate: false)-- wp+ build(:work_package, subject: '').tap do |wp|+ wp.save!(validate: false)+ endendlet(:user) { build_stubbed(:admin) }let(:instance) do@@ -290,9 +287,9 @@ describe WorkPackages::SetAttributesService,contract_class:)end- context 'with a current invalid start date' do+ context 'with a currently invalid subject' dolet(:call_attributes) { attributes }- let(:attributes) { { start_date: Time.zone.today - 5.days } }+ let(:attributes) { { subject: 'ABC' } }let(:contract_valid) { true }subject { instance.call(call_attributes) }