diff --git a/spec/models/topic_spec.rb b/spec/models/topic_spec.rb index e2486c753..27e9e127a 100644 --- a/spec/models/topic_spec.rb +++ b/spec/models/topic_spec.rb @@ -26,30 +26,6 @@ describe Topic do it_behaves_like "a versioned model" - context '.title_quality' do - - it "strips a title when identifying length" do - Fabricate.build(:topic, title: (" " * SiteSetting.min_topic_title_length) + "x").should_not be_valid - end - - it "doesn't allow a long title" do - Fabricate.build(:topic, title: "x" * (SiteSetting.max_topic_title_length + 1)).should_not be_valid - end - - it "doesn't allow a short title" do - Fabricate.build(:topic, title: "x" * (SiteSetting.min_topic_title_length + 1)).should_not be_valid - end - - it "allows a regular title with a few ascii characters" do - Fabricate.build(:topic, title: "hello this is my cool topic! welcome: all;").should be_valid - end - - it "allows non ascii" do - Fabricate.build(:topic, title: "Iñtërnâtiônàlizætiøn").should be_valid - end - - end - context 'slug' do let(:title) { "hello world topic" }