diff --git a/spec/lib/govuk_publishing_components/app_helpers/asset_helper_spec.rb b/spec/lib/govuk_publishing_components/app_helpers/asset_helper_spec.rb index 2f2440763a..2bd2494c5b 100644 --- a/spec/lib/govuk_publishing_components/app_helpers/asset_helper_spec.rb +++ b/spec/lib/govuk_publishing_components/app_helpers/asset_helper_spec.rb @@ -7,6 +7,7 @@ it "exclude stylesheets already in static when exclude_css_from_static is true and the request object is not available" do GovukPublishingComponents.configure do |config| config.exclude_css_from_static = true + config.custom_css_exclude_list = nil end add_gem_component_stylesheet("button") @@ -35,6 +36,7 @@ def request it "initialize asset helper then add multiple stylesheets but exclude 'button' stylesheet since it's already in static" do GovukPublishingComponents.configure do |config| config.exclude_css_from_static = true + config.custom_css_exclude_list = nil end add_gem_component_stylesheet("accordion")