Commit a38699e0 authored by Tim Zallmann's avatar Tim Zallmann

Updated use_startup_css to check if we are in Test

parent 12f83db6
......@@ -236,11 +236,11 @@ module ApplicationHelper
end
def use_startup_css?
Feature.enabled?(:startup_css)
Feature.enabled?(:startup_css) && !Rails.env.test?
end
def stylesheet_link_tag_defer(path)
if use_startup_css? && !Rails.env.test?
if use_startup_css?
stylesheet_link_tag(path, media: "print")
else
stylesheet_link_tag(path, media: "all")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment