diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-03 10:46:17 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-05 14:01:16 -0600 |
commit | ca404170f0173f180b530fbc331fc73e122a4317 (patch) | |
tree | 24bc2ad2ee3d5a89516aac69e2f7eb0f8e07fb90 /spec/support | |
parent | 313aa339b9b2cda26c9160f70444f107e2aafef4 (diff) | |
download | gitlab-ce-ca404170f0173f180b530fbc331fc73e122a4317.tar.gz |
exclude script type=text/template from dom scrubbing
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/javascript_fixtures_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/javascript_fixtures_helpers.rb b/spec/support/javascript_fixtures_helpers.rb index 99e98eebdb4..7cf0e29db34 100644 --- a/spec/support/javascript_fixtures_helpers.rb +++ b/spec/support/javascript_fixtures_helpers.rb @@ -34,7 +34,7 @@ module JavaScriptFixturesHelpers link_tags = doc.css('link') link_tags.remove - scripts = doc.css('script') + scripts = doc.css("script:not([type='text/template'])") scripts.remove fixture = doc.to_html |