mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
@@ -207,8 +207,8 @@ describe PostSerializer do
|
||||
|
||||
let(:post) {
|
||||
post = Fabricate(:post, user: user)
|
||||
post.custom_fields["notice_type"] = Post.notices[:returning_user]
|
||||
post.custom_fields["notice_args"] = 1.day.ago
|
||||
post.custom_fields[Post::NOTICE_TYPE] = Post.notices[:returning_user]
|
||||
post.custom_fields[Post::NOTICE_ARGS] = 1.day.ago
|
||||
post.save_custom_fields
|
||||
post
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user