Fixes failing spec for badges.

spec/features/official_positions_spec.rb:56 was failing because the expected
badge was not being shown in featured proposals.
This commit is contained in:
Jaime Iniesta
2016-09-07 13:13:06 +02:00
parent 9e72b91ef0
commit 8af944ce56

View File

@@ -7,7 +7,14 @@
<% else %>
<%= proposal.author.name %>
<% end %>
&nbsp;&bull;&nbsp;
<% if proposal.author.display_official_position_badge? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="label round level-<%= proposal.author.official_level %>">
<%= proposal.author.official_position %>
</span>
<% end %>
<strong><%= t("proposals.proposal.supports", count: proposal.total_votes) %></strong>
</div>
</div>