diff --git a/app/views/shared/_stripe_js.html.haml b/app/views/shared/_stripe_js.html.haml
index 8fbeec8aa1..1ce1cd99e4 100644
--- a/app/views/shared/_stripe_js.html.haml
+++ b/app/views/shared/_stripe_js.html.haml
@@ -1,5 +1,5 @@
- if Rails.env.test?
%script{type: "text/javascript"}
- = render file: "spec/support/fixtures/stripejs-mock.js"
+ = raw render file: "spec/support/fixtures/stripejs-mock.js"
- else
%script{src: "https://js.stripe.com/v3/", type: "text/javascript"}