Commit 9408ceef56712d76f67540b420faf753602ccda5

Authored by Nathan Broadbent
1 parent 6afe0fcf
Exists in master and in 1 other branch production

Display shortened revision in app#deploys

app/views/deploys/_table.html.haml
... ... @@ -17,5 +17,5 @@
17 17 %td.who= deploy.username
18 18 %td.message= deploy.message
19 19 %td.repository= deploy.repository
20   - %td.revision= deploy.revision
  20 + %td.revision= deploy.short_revision
21 21  
... ...
spec/controllers/deploys_controller_spec.rb
... ... @@ -55,7 +55,7 @@ describe DeploysController do
55 55 end
56 56  
57 57 it "should contain info about existing deploy" do
58   - response.body.should match(@deploy.revision)
  58 + response.body.should match(@deploy.short_revision)
59 59 response.body.should match(@deploy.app.name)
60 60 end
61 61 end
... ...