Use hidden trait in specs

We were using it in most places, but there were a few where we still
used `hidden_at: Time.current`.
This commit is contained in:
Javi Martín
2019-09-23 22:17:12 +02:00
parent f27beb1e47
commit 2b2c528098
5 changed files with 16 additions and 12 deletions

View File

@@ -75,9 +75,9 @@ describe "Stats" do
end
scenario "Do not count hidden users" do
1.times { create(:user, :level_three, hidden_at: Time.current) }
2.times { create(:user, :level_two, hidden_at: Time.current) }
3.times { create(:user, hidden_at: Time.current) }
1.times { create(:user, :hidden, :level_three) }
2.times { create(:user, :hidden, :level_two) }
3.times { create(:user, :hidden) }
visit admin_stats_path