mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
FEATURE: make pin expiration mandatory
This commit is contained in:
@ -324,12 +324,12 @@ describe TopicsController do
|
||||
end
|
||||
|
||||
it 'calls update_status on the forum topic with false' do
|
||||
Topic.any_instance.expects(:update_status).with('closed', false, @user)
|
||||
Topic.any_instance.expects(:update_status).with('closed', false, @user, until: nil)
|
||||
xhr :put, :status, topic_id: @topic.id, status: 'closed', enabled: 'false'
|
||||
end
|
||||
|
||||
it 'calls update_status on the forum topic with true' do
|
||||
Topic.any_instance.expects(:update_status).with('closed', true, @user)
|
||||
Topic.any_instance.expects(:update_status).with('closed', true, @user, until: nil)
|
||||
xhr :put, :status, topic_id: @topic.id, status: 'closed', enabled: 'true'
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user