FEATURE: remove category badge style options, set bullet style as default (#24198)

This commit is contained in:
Kris
2023-11-13 10:46:15 -05:00
committed by GitHub
parent 70b72ee893
commit 797da5870b
68 changed files with 302 additions and 887 deletions

View File

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