2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Add fixed_category_positions site setting to handle whether categories are ordered by specified positions or by activity.

This commit is contained in:
Neil Lalonde 2014-05-16 11:33:44 -04:00
parent 417fdeaad8
commit 27cbc06563
17 changed files with 91 additions and 101 deletions

View file

@ -165,13 +165,6 @@ describe CategoriesController do
@category.color.should == "ff0"
@category.auto_close_hours.should == 72
end
it "can set category to use default position" do
xhr :put, :update, valid_attrs.merge(position: 'default')
response.should be_success
@category.reload
@category.position.should be_nil
end
end
end