From ca404170f0173f180b530fbc331fc73e122a4317 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Tue, 3 Jan 2017 10:46:17 -0600 Subject: [PATCH] exclude script type=text/template from dom scrubbing --- spec/support/javascript_fixtures_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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