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
Fix Rubocop issues with Time.now + x
Klaus Zandersdec201444ac4
diff --git a/spec/lib/api/v3/work_packages/eager_loading/cache_checksum_integration_spec.rb b/spec/lib/api/v3/work_packages/eager_loading/cache_checksum_integration_spec.rbindex 483153a3fad..38fee258cb2 100644--- a/spec/lib/api/v3/work_packages/eager_loading/cache_checksum_integration_spec.rb+++ b/spec/lib/api/v3/work_packages/eager_loading/cache_checksum_integration_spec.rb@@ -72,7 +72,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the status' do- work_package.status.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.status.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -86,7 +86,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the author' do- work_package.author.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.author.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -100,7 +100,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the assigned_to' do- work_package.assigned_to.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.assigned_to.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -114,7 +114,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the responsible' do- work_package.responsible.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.responsible.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -128,7 +128,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the version' do- work_package.version.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.version.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -143,7 +143,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the type' do- work_package.type.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.type.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -157,7 +157,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the priority' do- work_package.priority.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.priority.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -171,7 +171,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the category' do- work_package.category.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.category.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum@@ -185,7 +185,7 @@ RSpec.describe API::V3::WorkPackages::EagerLoading::Checksum doendit 'produces a different checksum on changes to the budget' do- work_package.budget.update_attribute(:updated_at, Time.now + 10.seconds)+ work_package.budget.update_attribute(:updated_at, 10.seconds.from_now)expect(new_checksum).not_to eql orig_checksum