DEV: Be specific about time units (#17629)

All other tests that are setting grade_period use either unitless `0`, `1.minute` or `5.minutes` so it wasn't clear if `5` was meant to be seconds (it was)
This commit is contained in:
Jarek Radosz 2022-07-25 02:32:15 +02:00 committed by GitHub
parent 10fa1cafb1
commit 02a96a53fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ describe PostRevisor do
it "resets the edit_reason attribute in post model" do
freeze_time
SiteSetting.editing_grace_period = 5
SiteSetting.editing_grace_period = 5.seconds
post = Fabricate(:post, raw: 'hello world')
revisor = PostRevisor.new(post)
revisor.revise!(post.user, { raw: 'hello world123456789', edit_reason: 'this is my reason' }, revised_at: post.updated_at + 1.second)