Commit 3ef515f3 authored by Katarzyna Kobierska's avatar Katarzyna Kobierska

Refactor fields in view

parent 7dfb204e
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
%br %br
%b Tag list: %b Tag list:
= build[:tag_list] && build[:tag_list].to_a.join(", ") = build[:tag_list].to_a.join(", ")
%br %br
%b Refs only: %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 %br
%b Refs except: %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 %br
%b Environment: %b Environment:
= build[:environment] = build[:environment]
......
...@@ -43,7 +43,7 @@ describe 'ci/lints/show' do ...@@ -43,7 +43,7 @@ describe 'ci/lints/show' do
it 'shows error message' do it 'shows error message' do
render 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).to have_content('Error: Undefined error')
expect(rendered).not_to have_content('Tag list:') expect(rendered).not_to have_content('Tag list:')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment