summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-09-25 08:07:47 +0000
committerPhil Hughes <me@iamphill.com>2018-09-25 08:07:47 +0000
commit32ccde8ccdafa5920c5677c6caa7b22337e7cb44 (patch)
tree1a204d28ff3bae5bf0b8add00b7f42ef533a7134 /spec/views
parent765686f26af5d96bbd692ed95d90142cc3ead6d0 (diff)
downloadgitlab-ce-32ccde8ccdafa5920c5677c6caa7b22337e7cb44.tar.gz
Use Vue component for job artifacts, Commit and Trigger Variables
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/jobs/show.html.haml_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/views/projects/jobs/show.html.haml_spec.rb b/spec/views/projects/jobs/show.html.haml_spec.rb
index c93152b88e3..496646dc623 100644
--- a/spec/views/projects/jobs/show.html.haml_spec.rb
+++ b/spec/views/projects/jobs/show.html.haml_spec.rb
@@ -188,40 +188,4 @@ describe 'projects/jobs/show' do
expect(rendered).not_to have_link('New issue')
end
end
-
- context 'when incomplete trigger_request is used' do
- before do
- build.trigger_request = FactoryBot.build(:ci_trigger_request, trigger: nil)
- end
-
- it 'test should not render token block' do
- render
-
- expect(rendered).not_to have_content('Token')
- end
- end
-
- context 'when complete trigger_request is used' do
- before do
- build.trigger_request = FactoryBot.build(:ci_trigger_request)
- end
-
- it 'should render token' do
- render
-
- expect(rendered).to have_content('Token')
- expect(rendered).to have_content(build.trigger_request.trigger.short_token)
- end
- end
-
- describe 'commit title in sidebar' do
- let(:commit_title) { project.commit.title }
-
- it 'shows commit title and not show commit message' do
- render
-
- expect(rendered).to have_css('p.build-light-text.append-bottom-0',
- text: /\A\n#{Regexp.escape(commit_title)}\n\Z/)
- end
- end
end