FEATURE: Add new_since column to UserStat so we can reset the "New"

date.
This commit is contained in:
Robin Ward
2014-03-03 14:31:29 -05:00
parent 5c3f2feed4
commit 3abe84941f
4 changed files with 19 additions and 5 deletions

View File

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