diff options
author | Fabio Pitino <pitinofabio@gmail.com> | 2019-04-30 13:36:44 +0100 |
---|---|---|
committer | Fabio Pitino <pitinofabio@gmail.com> | 2019-04-30 13:36:44 +0100 |
commit | 4de06435d0c6fc904081b4da82253a2e025613a4 (patch) | |
tree | b2ffca79cd0179f3f45cdc4fc9b31b9ae8a9cf35 | |
parent | d232137aa7d857396060f9ab02d4e99cf8081285 (diff) | |
download | gitlab-ce-4de06435d0c6fc904081b4da82253a2e025613a4.tar.gz |
Write test that exposes bug with Fugit gem
-rw-r--r-- | spec/lib/gitlab/ci/cron_parser_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/cron_parser_spec.rb b/spec/lib/gitlab/ci/cron_parser_spec.rb index 2a3f7807fdb..491e3fba9d9 100644 --- a/spec/lib/gitlab/ci/cron_parser_spec.rb +++ b/spec/lib/gitlab/ci/cron_parser_spec.rb @@ -174,6 +174,13 @@ describe Gitlab::Ci::CronParser do it { expect(subject).to be_nil } 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 describe '#cron_valid?' do |