Skip to content

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

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.rb
index 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 do
describe 'WITH the today date fixed to April 4th, 2011 and having a 10 (working days) sprint' do
before do
allow(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))
end
describe 'WITH having a version in the future' do
diff --git a/spec/lib/redmine/i18n_spec.rb b/spec/lib/redmine/i18n_spec.rb
index 42de8393940..165dcca05e2 100644
--- a/spec/lib/redmine/i18n_spec.rb
+++ b/spec/lib/redmine/i18n_spec.rb
@@ -47,13 +47,13 @@ module OpenProject
it 'returns a date in the user timezone for a utc timestamp' do
Time.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'
end
it 'returns a date in the user timezone for a non-utc timestamp' do
Time.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'
end
end
@@ -63,14 +63,14 @@ module OpenProject
it 'returns a date in the local system timezone for a utc timestamp' do
Time.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'
end
it 'returns a date in the original timezone for a non-utc timestamp' do
Time.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'
end
end