Merge pull request #7568 from andrewpbrett/stripe-mock-js

[Rails 6.0] Use raw to render stripe mock js file
This commit is contained in:
Andy Brett
2021-05-08 17:46:24 -07:00
committed by GitHub

View File

@@ -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"}