Show information indicating that build has been erased

This commit is contained in:
Grzegorz Bizon
2016-02-19 17:24:59 +01:00
committed by Grzegorz Bizon
parent 2c7f36f430
commit ede451c851
3 changed files with 14 additions and 4 deletions
+9 -4
View File
@@ -76,10 +76,15 @@
= link_to '#down-build-trace', class: 'btn' do
%i.fa.fa-angle-down
%pre.trace#build-trace
%code.bash
= preserve do
= raw @build.trace_html
- unless @build.erased?
%pre.trace#build-trace
%code.bash
= preserve do
= raw @build.trace_html
- else
.erased.alert.alert-warning
Build has been erased by #{@build.erased_by.username} #{time_ago_with_tooltip(@build.created_at)}
%div#down-build-trace
.col-md-3
+1
View File
@@ -20,3 +20,4 @@ Feature: Project Builds Summary
And I click erase build button
Then recent build has been erased
And recent build summary does not have artifacts widget
And recent build summary contains information saying that build has been erased
+4
View File
@@ -24,4 +24,8 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
step 'recent build summary does not have artifacts widget' do
expect(page).to have_no_css('.artifacts')
end
step 'recent build summary contains information saying that build has been erased' do
expect(page).to have_css('.erased')
end
end