tests that user has been hidden

This commit is contained in:
rgarcia
2015-10-20 13:07:47 +02:00
parent d54abb5dfe
commit aface2c89e
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
<%= link_to t("debates.debate.comments", count: debate.comments_count), debate_path(debate, anchor: "comments") %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l debate.created_at.to_date %>
<% if debate.author.hidden? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="author">
@@ -37,6 +38,7 @@
<%= t("shared.collective") %>
</span>
<% end %>
</p>
<div class="debate-description">
<%= link_to debate.description, debate %>

View File

@@ -317,6 +317,7 @@ describe User do
user.reload
expect(user.erase_reason).to eq('a test')
expect(user.hidden_at).to be
expect(user.username).to be_nil