mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
introduce Enum
This commit is contained in:
parent
0c8c41b131
commit
0c99dea153
45 changed files with 242 additions and 216 deletions
|
@ -16,10 +16,10 @@ describe PostTiming do
|
|||
post = Fabricate(:post)
|
||||
user2 = Fabricate(:coding_horror)
|
||||
|
||||
PostAction.act(user2, post, PostActionType.Types[:like])
|
||||
PostAction.act(user2, post, PostActionType.types[:like])
|
||||
post.user.unread_notifications.should == 1
|
||||
|
||||
post.user.unread_notifications_by_type.should == {Notification.Types[:liked] => 1}
|
||||
post.user.unread_notifications_by_type.should == { Notification.types[:liked] => 1 }
|
||||
|
||||
PostTiming.process_timings(post.user, post.topic_id, 1, 100, [[post.post_number, 100]])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue