Commit d9fe5c25 authored by winniehell's avatar winniehell

Strip <link> tags from fixtures to ignore CSS

parent 82429b69
......@@ -31,6 +31,9 @@ module JavaScriptFixturesHelpers
if response_mime_type.html?
doc = Nokogiri::HTML::DocumentFragment.parse(fixture)
link_tags = doc.css('link')
link_tags.remove
scripts = doc.css('script')
scripts.remove
......
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