mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 04:04:59 -05:00
If you rename a category, also rename the category definition topic.
This commit is contained in:
@@ -220,6 +220,12 @@ describe Category do
|
||||
@category.topics_year.should == 0
|
||||
end
|
||||
|
||||
it "renames the definition when renamed" do
|
||||
@category.update_attributes(name: 'Troutfishing')
|
||||
@topic.reload
|
||||
@topic.title.should =~ /Troutfishing/
|
||||
end
|
||||
|
||||
it "should not set its description topic to auto-close" do
|
||||
category = Fabricate(:category, name: 'Closing Topics', auto_close_hours: 1)
|
||||
category.topic.auto_close_at.should be_nil
|
||||
|
||||
Reference in New Issue
Block a user