From 3ef515f3f111e7b470dbb29ba1c75479aee8dc7b Mon Sep 17 00:00:00 2001
From: Katarzyna Kobierska <kkobierska@gmail.com>
Date: Tue, 20 Sep 2016 17:28:54 +0200
Subject: [PATCH] Refactor fields in view

---
 app/views/ci/lints/_create.html.haml       | 6 +++---
 spec/views/ci/lints/show.html.haml_spec.rb | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/views/ci/lints/_create.html.haml b/app/views/ci/lints/_create.html.haml
index 342259226a2..d5c21c6dffe 100644
--- a/app/views/ci/lints/_create.html.haml
+++ b/app/views/ci/lints/_create.html.haml
@@ -21,13 +21,13 @@
 
                 %br
                 %b Tag list:
-                = build[:tag_list] && build[:tag_list].to_a.join(", ")
+                = build[:tag_list].to_a.join(", ")
                 %br
                 %b Refs only:
-                = @jobs[build[:name].to_sym][:only] && @jobs[build[:name].to_sym][:only].to_a.join(", ")
+                = @jobs[build[:name].to_sym][:only].to_a.join(", ")
                 %br
                 %b Refs except:
-                = @jobs[build[:name].to_sym][:except] && @jobs[build[:name].to_sym][:except].to_a.join(", ")
+                = @jobs[build[:name].to_sym][:except].to_a.join(", ")
                 %br
                 %b Environment:
                 = build[:environment]
diff --git a/spec/views/ci/lints/show.html.haml_spec.rb b/spec/views/ci/lints/show.html.haml_spec.rb
index 620fb0e4821..793b747e7eb 100644
--- a/spec/views/ci/lints/show.html.haml_spec.rb
+++ b/spec/views/ci/lints/show.html.haml_spec.rb
@@ -43,7 +43,7 @@ describe 'ci/lints/show' do
     it 'shows error message' do
       render
 
-      expect(rendered).to have_content('Status: syntax is incorrec')
+      expect(rendered).to have_content('Status: syntax is incorrect')
       expect(rendered).to have_content('Error: Undefined error')
       expect(rendered).not_to have_content('Tag list:')
     end
-- 
GitLab