mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
refactor Topic
* move finding by username/email to User * make SiteSetting return a range of possible post title lengths * remove unnecessary conditions
This commit is contained in:
@ -107,4 +107,13 @@ describe SiteSetting do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'topic_title_length' do
|
||||
it 'returns a range of min/max topic title length' do
|
||||
SiteSetting.min_topic_title_length = 1
|
||||
SiteSetting.max_topic_title_length = 2
|
||||
|
||||
SiteSetting.topic_title_length.should == (1..2)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user