Commit 12a5380f authored by Shinya Maeda's avatar Shinya Maeda

Implement a offset calculation on cron_parser_spec

parent c2c3ee1b
...@@ -67,7 +67,7 @@ describe Gitlab::Ci::CronParser do ...@@ -67,7 +67,7 @@ describe Gitlab::Ci::CronParser do
it_behaves_like "returns time in the future" it_behaves_like "returns time in the future"
it 'converts time in server time zone' do it 'converts time in server time zone' do
expect(subject.hour).to eq(7) expect(subject.hour).to eq((Time.zone.now.in_time_zone(cron_timezone).utc_offset / 60 / 60).abs)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment