diff options
author | winniehell <git@winniehell.de> | 2016-11-23 21:36:34 +0100 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-11-25 11:03:35 +0100 |
commit | d9fe5c259d8880fcb9f8c1cc3322836d4d35ef93 (patch) | |
tree | 0bf7f321f2eb673b68763572a84df288ddf105e9 /spec | |
parent | 82429b6978361daaf703a3438c7822ac956a3aa4 (diff) | |
download | gitlab-ce-d9fe5c259d8880fcb9f8c1cc3322836d4d35ef93.tar.gz |
Strip <link> tags from fixtures to ignore CSS
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/javascript_fixtures_helpers.rb | 3 |
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 |