mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 16:05:45 +08:00
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:
parent
10fa1cafb1
commit
02a96a53fb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user