adds specs for spending proposal code

This commit is contained in:
rgarcia
2016-04-04 18:49:46 +02:00
parent 4c52390608
commit 53502039dc
2 changed files with 4 additions and 1 deletions

View File

@@ -16,7 +16,7 @@
</div>
<br>
<p>
<p id="spending_proposal_code">
<%= t("spending_proposals.show.code") %>
<strong><%= @spending_proposal.id %></strong>
</p>

View File

@@ -181,6 +181,9 @@ feature 'Spending proposals' do
expect(page).to have_content(spending_proposal.author.name)
expect(page).to have_content(spending_proposal.association_name)
expect(page).to have_content(spending_proposal.geozone.name)
within("#spending_proposal_code") do
expect(page).to have_content(spending_proposal.id)
end
end
context "Destroy" do