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

Refactor fields in view

parent 7dfb204e
......@@ -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]
......
......@@ -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
......
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