adds code to proposal's show

This commit is contained in:
Juanjo Bazán
2015-09-14 19:59:46 +02:00
parent 23fee748fe
commit 325893e06e
2 changed files with 3 additions and 0 deletions

View File

@@ -53,6 +53,8 @@
<i class="icon-comments"></i>&nbsp;
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= @proposal.code %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-flag-actions">
<%= render 'proposals/flag_actions', proposal: @proposal %>
</span>

View File

@@ -40,6 +40,7 @@ feature 'Proposals' do
visit proposal_path(proposal)
expect(page).to have_content proposal.title
expect(page).to have_content proposal.code
expect(page).to have_content "Proposal question"
expect(page).to have_content "Proposal description"
expect(page).to have_content "http://external_documention.es"