diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-13 14:57:42 -0600 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-26 17:03:11 -0600 |
commit | 02bc89983a4b4b81a2f6279c39622b8a14430e3d (patch) | |
tree | 00282bd6b3261d46de16a9cd0a1cbef34fe90465 /spec | |
parent | 80f9aff34b07fd8dc490a06cd6281b5af4310438 (diff) | |
download | gitlab-ce-02bc89983a4b4b81a2f6279c39622b8a14430e3d.tar.gz |
Build ci/lint page
- Includes new image from gitlab-svgs
- Updates dependency for svgs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/views/projects/ci/lints/show.html.haml_spec.rb | 27 |
1 files changed, 12 insertions, 15 deletions
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) |