travis-web/assets/scripts/spec/integration/routes_spec.coffee
Henrik Hodne 2450f9fe9d Revert previous revert
I found the commit that caused the bug that caused me to do the last
revert. I'm therefore reverting the previous revert and I will be
committing a revert that reverts the commit that introduced the bug. See
next commit.

This reverts commit db2d38a7af.
2014-02-12 09:54:24 -06:00

14 lines
580 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($('#main').text().trim(), 'The requested page was not found.')
test 'renders repo not found information when repo can\'t be found', ->
visit('/what-is-this/i-dont-even').then ->
equal($('#main').text().trim(), 'The repository at what-is-this/i-dont-even was not found.')