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:
parent
93a257707e
commit
6e5399d544
41 changed files with 230 additions and 341 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue