mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: Add new_since
column to UserStat
so we can reset the "New"
date.
This commit is contained in:
parent
5c3f2feed4
commit
3abe84941f
4 changed files with 19 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue