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
chore: remove useless usage of octal notation
Christophe Bliardbf2154546d21
diff --git a/modules/backlogs/spec/models/burndown_spec.rb b/modules/backlogs/spec/models/burndown_spec.rbindex ffb8461a159..7c2a4ecc2ea 100644--- a/modules/backlogs/spec/models/burndown_spec.rb+++ b/modules/backlogs/spec/models/burndown_spec.rb@@ -83,7 +83,7 @@ describe Burndown, type: :model dodescribe 'WITH the today date fixed to April 4th, 2011 and having a 10 (working days) sprint' dobefore doallow(Time).to receive(:now).and_return(Time.utc(2011, 'apr', 4, 20, 15, 1))- allow(Date).to receive(:today).and_return(Date.civil(2011, 0o4, 0o4))+ allow(Date).to receive(:today).and_return(Date.civil(2011, 4, 4))enddescribe 'WITH having a version in the future' dodiff --git a/spec/lib/redmine/i18n_spec.rb b/spec/lib/redmine/i18n_spec.rbindex 42de8393940..165dcca05e2 100644--- a/spec/lib/redmine/i18n_spec.rb+++ b/spec/lib/redmine/i18n_spec.rb@@ -47,13 +47,13 @@ module OpenProjectit 'returns a date in the user timezone for a utc timestamp' doTime.zone = 'UTC'- time = Time.zone.local(2013, 0o6, 30, 23, 59)+ time = Time.zone.local(2013, 6, 30, 23, 59)expect(format_time_as_date(time, format)).to eq '01/07/2013'endit 'returns a date in the user timezone for a non-utc timestamp' doTime.zone = 'Berlin'- time = Time.zone.local(2013, 0o6, 30, 23, 59)+ time = Time.zone.local(2013, 6, 30, 23, 59)expect(format_time_as_date(time, format)).to eq '01/07/2013'endend@@ -63,14 +63,14 @@ module OpenProjectit 'returns a date in the local system timezone for a utc timestamp' doTime.zone = 'UTC'- time = Time.zone.local(2013, 0o6, 30, 23, 59)- allow(time).to receive(:localtime).and_return(ActiveSupport::TimeZone['Athens'].local(2013, 0o7, 0o1, 0o1, 59))+ time = Time.zone.local(2013, 6, 30, 23, 59)+ allow(time).to receive(:localtime).and_return(ActiveSupport::TimeZone['Athens'].local(2013, 7, 1, 1, 59))expect(format_time_as_date(time, format)).to eq '01/07/2013'endit 'returns a date in the original timezone for a non-utc timestamp' doTime.zone = 'Berlin'- time = Time.zone.local(2013, 0o6, 30, 23, 59)+ time = Time.zone.local(2013, 6, 30, 23, 59)expect(format_time_as_date(time, format)).to eq '30/06/2013'endend