diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-21 00:09:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-21 00:09:07 +0000 |
commit | c13bf680779c861d0c77a06217e5e1e4e77dd65e (patch) | |
tree | ef6cfd66e33059399cedbbba38f39e6ca51b1a1b /spec/tasks | |
parent | 900c5cc840cccdce182aef5d5050a7950de9ad00 (diff) | |
download | gitlab-ce-c13bf680779c861d0c77a06217e5e1e4e77dd65e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index ebaaf179546..aecdc73ee3d 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -412,6 +412,16 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do expect { run_rake_task('gitlab:backup:create') }.to output.to_stdout_from_any_process end end + + context 'CRON env is set' do + before do + stub_env('CRON', '1') + end + + it 'does not output to stdout' do + expect { run_rake_task('gitlab:backup:create') }.not_to output.to_stdout_from_any_process + end + end end # backup_create task |