mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FEATURE: new bootstrap mode settings for brand new Discourse community (#4193)
* FEATURE: new bootstrap mode settings for brand new Discourse community * new SiteSetting.set_and_log method
This commit is contained in:
parent
6c5548c2e4
commit
74b3807f60
15 changed files with 157 additions and 7 deletions
|
@ -64,7 +64,7 @@ describe CategoriesController do
|
|||
expect(category.slug).to eq("hello-cat")
|
||||
expect(category.color).to eq("ff0")
|
||||
expect(category.auto_close_hours).to eq(72)
|
||||
expect(UserHistory.count).to eq(1)
|
||||
expect(UserHistory.count).to eq(4) # 1 + 3 (bootstrap mode)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -228,7 +228,7 @@ describe CategoriesController do
|
|||
"everyone" => CategoryGroup.permission_types[:create_post]
|
||||
}
|
||||
|
||||
expect(UserHistory.count).to eq(2)
|
||||
expect(UserHistory.count).to eq(5) # 2 + 3 (bootstrap mode)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue