mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
Attempt to make spec more robust
This commit is contained in:
parent
2ddf8ea0f8
commit
1d9fdcd9d3
|
@ -28,7 +28,7 @@ describe Jobs::ToggleTopicClosed do
|
|||
it 'should be work' do
|
||||
topic.update!(closed: true)
|
||||
|
||||
freeze_time(1.hour.from_now) do
|
||||
freeze_time(61.minutes.from_now) do
|
||||
described_class.new.execute(
|
||||
topic_timer_id: topic.public_topic_timer.id,
|
||||
state: false
|
||||
|
@ -37,7 +37,7 @@ describe Jobs::ToggleTopicClosed do
|
|||
expect(topic.reload.closed).to eq(false)
|
||||
|
||||
expect(Post.last.raw).to eq(I18n.t(
|
||||
'topic_statuses.autoclosed_disabled_minutes', count: 60
|
||||
'topic_statuses.autoclosed_disabled_minutes', count: 61
|
||||
))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user