mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:47:46 +08:00
Fix specs.
This commit is contained in:
@ -301,13 +301,11 @@ describe PostCreator do
|
||||
|
||||
it "updates topic's auto close date when it's based on last post" do
|
||||
Timecop.freeze do
|
||||
topic = Fabricate(:topic,
|
||||
topic_timers: [Fabricate(:topic_timer,
|
||||
based_on_last_post: true,
|
||||
execute_at: Time.zone.now - 12.hours,
|
||||
created_at: Time.zone.now - 24.hours
|
||||
)]
|
||||
)
|
||||
topic = Fabricate(:topic_timer,
|
||||
based_on_last_post: true,
|
||||
execute_at: Time.zone.now - 12.hours,
|
||||
created_at: Time.zone.now - 24.hours
|
||||
).topic
|
||||
|
||||
Fabricate(:post, topic: topic)
|
||||
|
||||
|
Reference in New Issue
Block a user