mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
Introduction of TextSentinel to enforce title and body quality.
This commit is contained in:
@ -334,9 +334,9 @@ describe TopicsController do
|
||||
end
|
||||
|
||||
it 'allows a change of title' do
|
||||
xhr :put, :update, topic_id: @topic.id, slug: @topic.title, title: 'new title'
|
||||
xhr :put, :update, topic_id: @topic.id, slug: @topic.title, title: 'this is a new title for the topic'
|
||||
@topic.reload
|
||||
@topic.title.should == 'new title'
|
||||
@topic.title.should == 'this is a new title for the topic'
|
||||
end
|
||||
|
||||
it 'triggers a change of category' do
|
||||
|
Reference in New Issue
Block a user