summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorwinniehell <git@winniehell.de>2016-11-23 21:36:34 +0100
committerwinniehell <git@winniehell.de>2016-11-25 11:03:35 +0100
commitd9fe5c259d8880fcb9f8c1cc3322836d4d35ef93 (patch)
tree0bf7f321f2eb673b68763572a84df288ddf105e9 /spec
parent82429b6978361daaf703a3438c7822ac956a3aa4 (diff)
downloadgitlab-ce-d9fe5c259d8880fcb9f8c1cc3322836d4d35ef93.tar.gz
Strip <link> tags from fixtures to ignore CSS
Diffstat (limited to 'spec')
-rw-r--r--spec/support/javascript_fixtures_helpers.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/javascript_fixtures_helpers.rb b/spec/support/javascript_fixtures_helpers.rb
index 7e066aa115d..99e98eebdb4 100644
--- a/spec/support/javascript_fixtures_helpers.rb
+++ b/spec/support/javascript_fixtures_helpers.rb
@@ -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