DEV: Replace magic values (#8398)

Follow-up to 35942f7c7c.
This commit is contained in:
Dan Ungureanu
2019-11-25 14:32:19 +02:00
committed by GitHub
parent ae9e881333
commit a992caf741
10 changed files with 38 additions and 33 deletions

View File

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