mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FEATURE: remove category badge style options, set bullet style as default (#24198)
This commit is contained in:
@ -391,26 +391,4 @@ RSpec.describe AdminDashboardData do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#deprecated_category_style_check" do
|
||||
subject(:dashboard_data) { described_class.new }
|
||||
|
||||
context "with a non-default category style" do
|
||||
before { SiteSetting.set(:category_style, "box") }
|
||||
|
||||
it "outputs the correct message" do
|
||||
expect(dashboard_data.deprecated_category_style_check).to eq(
|
||||
I18n.t("dashboard.category_style_deprecated"),
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context "with the default category style" do
|
||||
before { SiteSetting.set(:category_style, "bullet") }
|
||||
|
||||
it "outputs nothing" do
|
||||
expect(dashboard_data.deprecated_category_style_check).to eq(nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user