diff options
author | Fabio Pitino <pitinofabio@gmail.com> | 2019-04-30 13:36:44 +0100 |
---|---|---|
committer | Fabio Pitino <fpitino@gitlab.com> | 2019-05-02 13:30:50 +0100 |
commit | 9b3b7a58f0f2acf760c99ae595949b55212aa05b (patch) | |
tree | cacf354327341725dc15793a66b5f36fee3a6b6e | |
parent | a8347c22d0e33ab626ee4c3b4b9acffa69f7cf46 (diff) | |
download | gitlab-ce-9b3b7a58f0f2acf760c99ae595949b55212aa05b.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 |