mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 23:48:44 +08:00
FEATURE: track user visits on mobile and display on admin dashboard in a new Mobile section
This commit is contained in:
@ -921,7 +921,7 @@ describe User do
|
||||
|
||||
it "with no existing UserVisit record, creates a new UserVisit record and increments the posts_read count" do
|
||||
expect {
|
||||
user_visit = user.update_posts_read!(3, 5.days.ago)
|
||||
user_visit = user.update_posts_read!(3, at: 5.days.ago)
|
||||
expect(user_visit.posts_read).to eq(3)
|
||||
}.to change { UserVisit.count }.by(1)
|
||||
end
|
||||
|
Reference in New Issue
Block a user