diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-20 17:28:54 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-30 12:22:55 +0200 |
commit | 3ef515f3f111e7b470dbb29ba1c75479aee8dc7b (patch) | |
tree | 27f9b889bc7b4ea9dbf2b802c763bdc09e4aad5f | |
parent | 7dfb204ef9d343888e2fd8327c5a5348b98a76ce (diff) | |
download | gitlab-ce-3ef515f3f111e7b470dbb29ba1c75479aee8dc7b.tar.gz |
Refactor fields in view
-rw-r--r-- | app/views/ci/lints/_create.html.haml | 6 | ||||
-rw-r--r-- | 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 |