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:
Arpit Jalan
2016-04-26 22:38:19 +05:30
committed by Robin Ward
parent 6c5548c2e4
commit 74b3807f60
15 changed files with 157 additions and 7 deletions

View File

@ -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