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