diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 15:08:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 15:08:15 +0000 |
commit | c2b98d3dbd47ab92c79c702276fe9130d9a28036 (patch) | |
tree | bf4071f551fdc12c22b23b2bb66483064e7b9ea9 /spec/views/projects | |
parent | badb9c1deacbea601b02f88811b7e123589d9251 (diff) | |
download | gitlab-ce-c2b98d3dbd47ab92c79c702276fe9130d9a28036.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/projects')
-rw-r--r-- | spec/views/projects/services/edit.html.haml_spec.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/views/projects/services/edit.html.haml_spec.rb b/spec/views/projects/services/edit.html.haml_spec.rb new file mode 100644 index 00000000000..12e1cda2c00 --- /dev/null +++ b/spec/views/projects/services/edit.html.haml_spec.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe 'projects/services/edit' do + let(:service) { create(:drone_ci_service, project: project) } + let(:project) { create(:project) } + + before do + assign :project, project + assign :service, service + end + + it do + render + + expect(rendered).not_to have_text('Recent Deliveries') + end + + context 'service using WebHooks' do + before do + assign(:web_hook_logs, []) + end + + it do + render + + expect(rendered).to have_text('Recent Deliveries') + end + end +end |