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
Change expectation for endless range.
Dombi Attilaa6bacb0d4728
diff --git a/spec/models/work_package/work_package_acts_as_journalized_spec.rb b/spec/models/work_package/work_package_acts_as_journalized_spec.rbindex 5fea35a770c..2eaf8f8d858 100644--- a/spec/models/work_package/work_package_acts_as_journalized_spec.rb+++ b/spec/models/work_package/work_package_acts_as_journalized_spec.rb@@ -85,7 +85,7 @@ RSpec.describe WorkPackage doit 'has the updated_at of the work package as the lower bound for validity_period and no upper bound' doexpect(work_package.last_journal.validity_period)- .to eql(work_package.reload.updated_at...Float::INFINITY)+ .to eql(work_package.reload.updated_at...)endend@@ -279,7 +279,7 @@ RSpec.describe WorkPackage doit 'has the updated_at of the work package as the lower bound for validity_period and no upper bound' doexpect(work_package.last_journal.validity_period)- .to eql(work_package.reload.updated_at...Float::INFINITY)+ .to eql(work_package.reload.updated_at...)endit 'sets the upper bound of the preceeding journal to be the created_at time of the newly created journal' do@@ -379,9 +379,8 @@ RSpec.describe WorkPackage doit 'does not set an upper bound to the already existing journal' dowork_package.save-- expect(work_package.last_journal.validity_period.last)- .to eql(Float::INFINITY)+ expect(work_package.last_journal.validity_period.end)+ .to be_nilendend@@ -746,7 +745,7 @@ RSpec.describe WorkPackage doit 'has the journal\'s creation time as the lower and no upper bound for validity_period' doexpect(work_package.last_journal.validity_period)- .to eql(work_package.last_journal.created_at...Float::INFINITY)+ .to eql(work_package.last_journal.created_at...)endend@@ -780,7 +779,7 @@ RSpec.describe WorkPackage doit 'has the second journal\'s creation time as the lower and no upper bound for validity_period of the second journal' doexpect(subject.second.validity_period)- .to eql(subject.second.created_at...Float::INFINITY)+ .to eql(subject.second.created_at...)endendend@@ -793,7 +792,7 @@ RSpec.describe WorkPackage dobefore dowork_package.last_journal.update_columns(created_at: last_update_time,updated_at: last_update_time,- validity_period: last_update_time..Float::INFINITY)+ validity_period: last_update_time..)work_package.update_columns(created_at: last_update_time,updated_at: last_update_time)@@ -813,7 +812,7 @@ RSpec.describe WorkPackage doit 'has the second journal\'s creation time as the lower and no upper bound for validity_period of the second journal' doexpect(subject.second.validity_period)- .to eql(subject.second.created_at...Float::INFINITY)+ .to eql(subject.second.created_at...)endend