CLEANUP: remove 'contains_messages' leftover 💩

This commit is contained in:
Régis Hanol
2016-01-12 11:29:26 +01:00
parent 96aa5b865f
commit 8049dfdfda
12 changed files with 10 additions and 37 deletions

View File

@ -898,18 +898,6 @@ describe TopicsController do
end
end
context 'when topic is in support category' do
let(:another_category) { Fabricate(:category) }
it "cannot change the category of a topic that is in a support category" do
@topic.category = Fabricate(:category, contains_messages: true)
@topic.save!
xhr :put, :update, topic_id: @topic.id, slug: @topic.title, category_id: another_category.id
expect(response).not_to be_success
end
end
context "allow_uncategorized_topics is false" do
before do
SiteSetting.stubs(:allow_uncategorized_topics).returns(false)