Commit 0edd1e67 authored by Fabio Pitino's avatar Fabio Pitino Committed by Fabio Pitino

Write test that exposes bug with Fugit gem

parent 552e9f74
...@@ -174,6 +174,13 @@ describe Gitlab::Ci::CronParser do ...@@ -174,6 +174,13 @@ describe Gitlab::Ci::CronParser do
it { expect(subject).to be_nil } it { expect(subject).to be_nil }
end end
context 'when cron is scheduled to a non existent day' do
let(:cron) { '0 12 31 2 *' }
let(:cron_timezone) { 'UTC' }
it { expect(subject).to be_nil }
end
end end
describe '#cron_valid?' do describe '#cron_valid?' do
......
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