mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: Add new_since
column to UserStat
so we can reset the "New"
date.
This commit is contained in:
@ -7,6 +7,9 @@ describe UserStat do
|
||||
it "is created automatically when a user is created" do
|
||||
user = Fabricate(:evil_trout)
|
||||
user.user_stat.should be_present
|
||||
|
||||
# It populates the `new_since` field by default
|
||||
user.user_stat.new_since.should be_present
|
||||
end
|
||||
|
||||
context '#update_view_counts' do
|
||||
|
Reference in New Issue
Block a user