2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

minor cleanup, using AR querying DSL over raw SQL in some places

This commit is contained in:
Gosha Arinich 2013-02-28 21:54:12 +03:00
parent 93a257707e
commit 6e5399d544
41 changed files with 230 additions and 341 deletions

View file

@ -116,4 +116,12 @@ describe SiteSetting do
end
end
describe 'post_length' do
it 'returns a range of min/max post length' do
SiteSetting.min_post_length = 1
SiteSetting.max_post_length = 2
SiteSetting.post_length.should == (1..2)
end
end
end