sign out before resetting app
This commit is contained in:
parent
99c3ad770c
commit
3f30f3eec9
|
@ -18,7 +18,8 @@
|
|||
user.send('rollback')
|
||||
user.unloadRecord()
|
||||
Travis.__container__.lookup('controller:currentUser').set('content', null)
|
||||
Travis.__container__.lookup('router:main').send('afterSignOut')
|
||||
if router = Travis.__container__.lookup('router:main')
|
||||
router.send('afterSignOut')
|
||||
|
||||
signIn: (data) ->
|
||||
if data
|
||||
|
|
|
@ -12,12 +12,12 @@ minispade.require 'app'
|
|||
token: 'abcdef'
|
||||
|
||||
@app = (url, options = {}) ->
|
||||
Travis.auth.signOut()
|
||||
# TODO: this should wait till app is initialized, not some
|
||||
# arbitrary amount of time
|
||||
waits(50)
|
||||
runs ->
|
||||
Travis.reset()
|
||||
Travis.auth.signOut()
|
||||
|
||||
if options.user
|
||||
signInUser()
|
||||
|
|
Loading…
Reference in New Issue
Block a user