diff options
author | winniehell <git@winniehell.de> | 2016-11-20 00:59:32 +0300 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-11-25 13:03:35 +0300 |
commit | 918bc207c680bed46e82bef996aea027ac72b38d (patch) | |
tree | 7071bcd73dc85df1318e3b61819aebe232aaf903 /spec/javascripts/spec_helper.js | |
parent | d100f843d784b64b1b73ad8090b855e2ffd985dd (diff) |
Use Rails test host name for frontend fixtures
Diffstat (limited to 'spec/javascripts/spec_helper.js')
-rw-r--r-- | spec/javascripts/spec_helper.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/javascripts/spec_helper.js b/spec/javascripts/spec_helper.js index 8a64de4dd43..831dfada952 100644 --- a/spec/javascripts/spec_helper.js +++ b/spec/javascripts/spec_helper.js @@ -41,3 +41,8 @@ }).call(this); + +// defined in ActionDispatch::TestRequest +// see https://github.com/rails/rails/blob/v4.2.7.1/actionpack/lib/action_dispatch/testing/test_request.rb#L7 +window.gl = window.gl || {}; +gl.TEST_HOST = 'http://test.host'; |