From 02bc89983a4b4b81a2f6279c39622b8a14430e3d Mon Sep 17 00:00:00 2001 From: Mayra Cabrera Date: Tue, 13 Mar 2018 14:57:42 -0600 Subject: Build ci/lint page - Includes new image from gitlab-svgs - Updates dependency for svgs --- .../views/projects/ci/lints/show.html.haml_spec.rb | 27 ++++++++++------------ 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'spec/views/projects/ci/lints/show.html.haml_spec.rb') diff --git a/spec/views/projects/ci/lints/show.html.haml_spec.rb b/spec/views/projects/ci/lints/show.html.haml_spec.rb index b50acc54276..2f0cd38c14a 100644 --- a/spec/views/projects/ci/lints/show.html.haml_spec.rb +++ b/spec/views/projects/ci/lints/show.html.haml_spec.rb @@ -3,10 +3,9 @@ require 'spec_helper' describe 'projects/ci/lints/show' do include Devise::Test::ControllerHelpers let(:project) { create(:project, :repository) } + let(:config_processor) { Gitlab::Ci::YamlProcessor.new(YAML.dump(content)) } describe 'XSS protection' do - let(:config_processor) { Gitlab::Ci::YamlProcessor.new(YAML.dump(content)) } - before do assign(:project, project) assign(:status, true) @@ -50,21 +49,19 @@ describe 'projects/ci/lints/show' do end end - let(:content) do - { - build_template: { - script: './build.sh', - tags: ['dotnet'], - only: ['test@dude/repo'], - except: ['deploy'], - environment: 'testing' + context 'when the content is valid' do + let(:content) do + { + build_template: { + script: './build.sh', + tags: ['dotnet'], + only: ['test@dude/repo'], + except: ['deploy'], + environment: 'testing' + } } - } - end - - let(:config_processor) { Gitlab::Ci::YamlProcessor.new(YAML.dump(content)) } + end - context 'when the content is valid' do before do assign(:project, project) assign(:status, true) -- cgit v1.2.1