tests that user has been hidden
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<%= link_to t("debates.debate.comments", count: debate.comments_count), debate_path(debate, anchor: "comments") %>
|
||||
<span class="bullet"> • </span>
|
||||
<%= l debate.created_at.to_date %>
|
||||
|
||||
<% if debate.author.hidden? %>
|
||||
<span class="bullet"> • </span>
|
||||
<span class="author">
|
||||
@@ -37,6 +38,7 @@
|
||||
<%= t("shared.collective") %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
</p>
|
||||
<div class="debate-description">
|
||||
<%= link_to debate.description, debate %>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user