Introduction of TextSentinel to enforce title and body quality.

This commit is contained in:
Robin Ward
2013-02-06 20:09:31 -05:00
parent 94e58d733e
commit 40da901e5d
12 changed files with 220 additions and 32 deletions

View File

@ -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