From 325893e06e02cc4f892ffb19cf52ae431ed60881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Mon, 14 Sep 2015 19:59:46 +0200 Subject: [PATCH] adds code to proposal's show --- app/views/proposals/show.html.erb | 2 ++ spec/features/proposals_spec.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb index a98ca1d69..f5628ec0a 100644 --- a/app/views/proposals/show.html.erb +++ b/app/views/proposals/show.html.erb @@ -53,6 +53,8 @@   <%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>  •  + <%= @proposal.code %> +  •  <%= render 'proposals/flag_actions', proposal: @proposal %> diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 0d2234359..7efe5d940 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -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"