Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix type supervisor deprecations in specs (#39222)

Jarek Radosz4e29df25f797
diff --git a/plugins/discourse-subscriptions/spec/system/campaign_banner_spec.rb b/plugins/discourse-subscriptions/spec/system/campaign_banner_spec.rb
index 74aaeb535d2..db05825ac26 100644
--- a/plugins/discourse-subscriptions/spec/system/campaign_banner_spec.rb
+++ b/plugins/discourse-subscriptions/spec/system/campaign_banner_spec.rb
@@ -18,7 +18,7 @@ RSpec.describe "Campaign Banner" do
SiteSetting.discourse_subscriptions_campaign_product = "prod_campaign"
SiteSetting.discourse_subscriptions_secret_key = "sk_test_51xuu"
SiteSetting.discourse_subscriptions_public_key = "pk_test_51xuu"
- SiteSetting.global_notice = nil
+ SiteSetting.global_notice = ""
end
context "when plugin is disabled" do
diff --git a/plugins/styleguide/spec/system/smoke_test_spec.rb b/plugins/styleguide/spec/system/smoke_test_spec.rb
index 90b23c9daf4..951f5db9356 100644
--- a/plugins/styleguide/spec/system/smoke_test_spec.rb
+++ b/plugins/styleguide/spec/system/smoke_test_spec.rb
@@ -96,8 +96,8 @@ RSpec.describe "Styleguide Smoke Test" do
end
end
- it "renders the index page correctly on a site with no default theme" do
- SiteSetting.default_theme_id = nil
+ it "renders the index page correctly on a site with no default color schemes" do
+ SiteSetting.default_theme_id = Fabricate(:theme).id
visit "/styleguide"
expect(page).to have_css(".styleguide-contents h1.section-title", text: "Styleguide")