Implement a offset calculation on cron_parser_spec

This commit is contained in:
Shinya Maeda 2017-04-05 18:29:15 +09:00
parent c2c3ee1bf9
commit 12a5380f5c
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ describe Gitlab::Ci::CronParser do
it_behaves_like "returns time in the future"
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