summaryrefslogtreecommitdiff
path: root/spec/support/javascript_fixtures_helpers.rb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-03 10:46:17 -0600
committerMike Greiling <mike@pixelcog.com>2017-01-05 14:01:16 -0600
commitca404170f0173f180b530fbc331fc73e122a4317 (patch)
tree24bc2ad2ee3d5a89516aac69e2f7eb0f8e07fb90 /spec/support/javascript_fixtures_helpers.rb
parent313aa339b9b2cda26c9160f70444f107e2aafef4 (diff)
downloadgitlab-ce-ca404170f0173f180b530fbc331fc73e122a4317.tar.gz
exclude script type=text/template from dom scrubbing
Diffstat (limited to 'spec/support/javascript_fixtures_helpers.rb')
-rw-r--r--spec/support/javascript_fixtures_helpers.rb2
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