diff --git a/spec/system/viewing_custom_header_links_spec.rb b/spec/system/viewing_custom_header_links_spec.rb index 6e00317..96eb589 100644 --- a/spec/system/viewing_custom_header_links_spec.rb +++ b/spec/system/viewing_custom_header_links_spec.rb @@ -8,8 +8,12 @@ context "when glimmer headers are enabled" do before do - SiteSetting.experimental_glimmer_header_groups = - Group::AUTO_GROUPS[:everyone] + if SiteSetting.respond_to?(:experimental_glimmer_header_groups) + SiteSetting.experimental_glimmer_header_groups = + Group::AUTO_GROUPS[:everyone] + else + SiteSetting.glimmer_header_mode = "enabled" + end end it "should display the custom header links" do @@ -38,7 +42,14 @@ end context "when glimmer headers are disabled" do - before { SiteSetting.experimental_glimmer_header_groups = nil } + before do + if SiteSetting.respond_to?(:experimental_glimmer_header_groups) + SiteSetting.experimental_glimmer_header_groups = + nil + else + SiteSetting.glimmer_header_mode = "disabled" + end + end it "should display the custom header links" do visit("/")