Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
- scenarios don't seem to reset config,
  so we also need to explicitly set this
  to nil in other tests
  • Loading branch information
KludgeKML committed Feb 27, 2025
1 parent 3bf2679 commit 39482d9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 39482d9

Please sign in to comment.