Add email counts to admin dashboard

This commit is contained in:
Neil Lalonde 2013-03-17 15:08:38 -04:00
parent 6a99d12784
commit 50b04b2209
8 changed files with 36 additions and 3 deletions
spec/models

View file

@ -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)