Sha256: de6933a40c8db7f3ef7d17bb0a01d4816c7984c1edf9c237da6360142a67d4bd

Contents?: true

Size: 444 Bytes

Versions: 16

Compression:

Stored size: 444 Bytes

Contents

Ember.Test.registerAsyncHelper "authenticateSession", (app) ->
  stubAjax 'GET', '/api/users/1', 200, FIXTURES.user(1)

  session = app.__container__.lookup('simple-auth-session:main')
  session.authenticate "simple-auth-authenticator:test"
  wait()

Ember.Test.registerAsyncHelper "invalidateSession", (app) ->
  session = app.__container__.lookup('simple-auth-session:main')
  session.invalidate()  if session.get("isAuthenticated")
  wait()

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dune-dashboard-1.1.5 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.1.4 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.1.3 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.1.2 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.1.1 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.1.0 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.9 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.8 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.7 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.6 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.5 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.4 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.3 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.2 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.1 spec/javascripts/helpers/auththentication.coffee
dune-dashboard-1.0.0 spec/javascripts/helpers/auththentication.coffee