17 lines
430 B
CoffeeScript
17 lines
430 B
CoffeeScript
minispade.require 'app'
|
|
|
|
@app = (url) ->
|
|
# TODO: this should wait till app is initialized, not some
|
|
# arbitrary amount of time
|
|
waits(50)
|
|
runs ->
|
|
Travis.reset()
|
|
Travis.auth.signOut()
|
|
url = "/#{url}" unless url.match /^\//
|
|
Travis.__container__.lookup('router:main').handleURL(url)
|
|
|
|
|
|
now = -> new Date('2012-07-02T00:03:00Z')
|
|
$.timeago.settings.nowFunction = -> now().getTime()
|
|
Travis.currentDate = now
|