Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-03-13 23:57:42 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2018-03-27 02:03:11 +0300
commit02bc89983a4b4b81a2f6279c39622b8a14430e3d (patch)
tree00282bd6b3261d46de16a9cd0a1cbef34fe90465 /spec/views
parent80f9aff34b07fd8dc490a06cd6281b5af4310438 (diff)
Build ci/lint page
- Includes new image from gitlab-svgs - Updates dependency for svgs
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/ci/lints/show.html.haml_spec.rb27
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)