A platform for community discussion. Free, open, simple.
DEV: correct regression in registry test suite
Sam Saffron7fe6d295b858
diff --git a/spec/components/discourse_plugin_registry_spec.rb b/spec/components/discourse_plugin_registry_spec.rbindex a9104fa0551..bbb4f8e416a 100644--- a/spec/components/discourse_plugin_registry_spec.rb+++ b/spec/components/discourse_plugin_registry_spec.rb@@ -170,16 +170,15 @@ describe DiscoursePluginRegistry doit "registers desktop css properly" doregistry.register_asset("test.css", :desktop, plugin_directory_name)- expect(registry.mobile_stylesheets[plugin_directory_name].count).to eq(0)expect(registry.desktop_stylesheets[plugin_directory_name].count).to eq(1)- expect(registry.stylesheets[plugin_directory_name].count).to eq(0)+ expect(registry.stylesheets[plugin_directory_name]).to eq(nil)+ expect(registry.mobile_stylesheets[plugin_directory_name]).to eq(nil)endit "registers mobile css properly" doregistry.register_asset("test.css", :mobile, plugin_directory_name)-expect(registry.mobile_stylesheets[plugin_directory_name].count).to eq(1)- expect(registry.stylesheets[plugin_directory_name].count).to eq(0)+ expect(registry.stylesheets[plugin_directory_name]).to eq(nil)endit "registers sass variable properly" do