mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
Add API support for querying admin reports by date range
This commit is contained in:
@ -30,7 +30,7 @@ describe EmailLog do
|
||||
it "counts sent emails" do
|
||||
user.email_logs.create(email_type: 'blah', to_address: user.email)
|
||||
user.email_logs.create(email_type: 'blah', to_address: user.email, skipped: true)
|
||||
described_class.count_per_day.first[1].should == 1
|
||||
described_class.count_per_day(1.day.ago, Time.now).first[1].should == 1
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user