travis-web/assets/scripts/spec/integration/routes_spec.coffee
Piotr Sarnacki 71e5959f4e Properly handle notFound URL
We handled notFound URL using an old hack, which no longer works. The
proper way now is to handle a "catch all" route.
2014-02-12 07:45:32 +01:00

10 lines
365 B
CoffeeScript

module "Router",
setup: ->
Ember.run -> Travis.advanceReadiness()
teardown: ->
Ember.run -> Travis.reset()
test 'renders notFound template when URL can\t be found', ->
visit('/somehing/something/something/.../dark/side/..../something/something/something/.../complete').then ->
equal('The requested page was not found.', $('#main').text().trim())