Sha256: 72a5a6e70d910f1db43dc500ac75294f4a6b9b6d8b92b60b79ad3d61247fc33b

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

(function() {

module('csrf-token', {})

asyncTest('find csrf token', 1, function() {
  var correctToken = 'cf50faa3fe97702ca1ae'

  $('#qunit-fixture').append('<meta name="csrf-token" content="' + correctToken + '"/>')

  currentToken = $.quails.csrfToken()

  start()
  equal(currentToken, correctToken)
})

asyncTest('find csrf param', 1, function() {
  var correctParam = 'authenticity_token'

  $('#qunit-fixture').append('<meta name="csrf-param" content="' + correctParam + '"/>')

  currentParam = $.quails.csrfParam()

  start()
  equal(currentParam, correctParam)
})

})()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 actionview/test/ujs/public/test/csrf-token.js