mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-04 18:03:59 -04:00
Add email counts to admin dashboard
This commit is contained in:
parent
6a99d12784
commit
50b04b2209
8 changed files with 36 additions and 3 deletions
spec/models
|
@ -26,7 +26,7 @@
|
|||
# end
|
||||
# end
|
||||
|
||||
# [:signup, :topic, :post, :flag, :like].each do |arg|
|
||||
# [:signup, :topic, :post, :flag, :like, :email].each do |arg|
|
||||
# describe "#{arg} report" do
|
||||
# pluralized = arg.to_s.pluralize
|
||||
|
||||
|
@ -40,7 +40,14 @@
|
|||
|
||||
# context "with #{pluralized}" do
|
||||
# before do
|
||||
# fabricator = (arg == :signup ? :user : arg)
|
||||
# fabricator = case arg
|
||||
# when :signup
|
||||
# :user
|
||||
# when :email
|
||||
# :email_log
|
||||
# else
|
||||
# arg
|
||||
# end
|
||||
# Fabricate(fabricator, created_at: 25.hours.ago)
|
||||
# Fabricate(fabricator, created_at: 1.hours.ago)
|
||||
# Fabricate(fabricator, created_at: 1.hours.ago)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue