diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 18:11:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 18:11:13 +0300 |
commit | faa19db44a5a4d0fb7a3be07319ca6201caa185a (patch) | |
tree | 7370bae7c72258b93ab0f02ba87145b43de5313f /spec/tasks | |
parent | 9c5341dd0832c3af377191c461c800e1aa048b10 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/web_hook_rake_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/tasks/gitlab/web_hook_rake_spec.rb b/spec/tasks/gitlab/web_hook_rake_spec.rb index 2c582dc78f8..cb6a6e72ab1 100644 --- a/spec/tasks/gitlab/web_hook_rake_spec.rb +++ b/spec/tasks/gitlab/web_hook_rake_spec.rb @@ -50,6 +50,10 @@ RSpec.describe 'gitlab:web_hook namespace rake tasks', :silence_stdout do let(:other_url) { 'http://other.example.com' } + it 'complains if URL is not provided' do + expect { run_rake_task('gitlab:web_hook:rm') }.to raise_error(ArgumentError, 'URL is required') + end + it 'removes a web hook from all projects by URL' do stub_env('URL' => url) run_rake_task('gitlab:web_hook:rm') |