UNPKG

capt

Version:

Command line tool for creating backbone.js applications with coffeescript

20 lines (14 loc) 530 B
describe '<%= router %> router', -> it 'should handle the truth', -> expect(true).toBeTruthy() it 'should exist', -> expect(<%= router.capitalize() %>Router).toBeTruthy() it 'should instantiate', -> x = new <%= router.capitalize() %>Controller expect(x instanceof <%= router.capitalize() %>Router).toBeTruthy() expect(x instanceof Backbone.Router).toBeTruthy() it 'should have index method', -> x = new <%= router.capitalize() %>Router x.index() # Umm..? expect(true).toBeTruthy()