Sha256: 12e15ab871439db01bed6bdfcbe443024cf9aefc7c59e7cd05e8f7a8e235767f

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

beforeEach ->
  this.paramsStrToHash = (str) ->
    params = {}
    paramsArray = str.split('&')
    paramsArray = App.Utils.Array.map paramsArray, (s) -> s.split '='
    for arr in paramsArray
      key = decodeURIComponent arr[0]
      val = decodeURIComponent arr[1]
      if val?
        val = val.replace /\+/g, " "
      params[key] = val
    params

afterEach ->
  App.Env.loco.setProtocolWithHost null

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/node_modules/loco-js/spec_coffee/helpers/spec-helper.coffee
loco-rails-3.0.2 test/dummy/node_modules/loco-js/spec_coffee/helpers/spec-helper.coffee
loco-rails-3.0.1 test/dummy/node_modules/loco-js/spec_coffee/helpers/spec-helper.coffee
loco-rails-3.0.0 test/dummy/node_modules/loco-js/spec_coffee/helpers/spec-helper.coffee