插件和主题中的新核心功能系统规格

我最近遇到了这个问题。以下是设置所需扩展的方法:

RSpec.describe "Core features" do
+ SiteSetting.theme_authorized_extensions = "js|css"
  before { upload_theme_or_component }

  it_behaves_like "having working core features"
end