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:
parent
417fdeaad8
commit
27cbc06563
17 changed files with 91 additions and 101 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue