Ensure that AUTH_TOKEN var is set in tests, since spree's admin JS errors without it

This commit is contained in:
Rohan Mitchell
2012-11-21 11:49:59 +11:00
parent a4d10ab4e0
commit bcc2ef99fd
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
:insert_bottom => "[data-hook='inside_head']",
:partial => "layouts/auth_token_script",
:name => "auth_token_script")
Deface::Override.new(:virtual_path => "spree/layouts/admin",
:insert_bottom => "[data-hook='admin_inside_head']",
:partial => "layouts/auth_token_script",
:name => "auth_token_script")

View File

@@ -0,0 +1,4 @@
:javascript
if(typeof AUTH_TOKEN === 'undefined') {
var AUTH_TOKEN = '';
}