Skip to content
Browse files

Improved the test within the TESTSUBAPP_JS and TESTSUBAPP_CS templates.

  • Loading branch information...
1 parent 3270f50 commit c5d9f8284f46ce4f327c7bec9d4139b6aa65db95 @mr-rock mr-rock committed Apr 11, 2012
Showing with 10 additions and 10 deletions.
  1. +5 −5 .lemmy/coffeescript
  2. +5 −5 .lemmy/javascript
View
10 .lemmy/coffeescript
@@ -80,12 +80,12 @@ TESTSUBAPP_CS = "describe 'App > $(NAME)', ->\
\n\tshould = require 'should'\
\n\n\tapp.use '/$(NAME_CAMELIZED)', $(NAME_CAMELIZED)\
\n\tapp.listen 3000\
+\n\n\tit 'should be mounted on the application stack.', (done) ->\
+\n\t\tapp.stack[1].route.should.eql '/$(NAME_CAMELIZED)'\
+\n\t\tapp.stack[1].handle.should.be.a 'function'\
+\n\t\tdone()\
+\n\t\treturn\
\n\n\tdescribe '\'/$(NAME_CAMELIZED)\' route', ->\
-\n\t\tit 'should exist.', (done) ->\
-\n\t\t\tapp.stack[1].route.should.eql '/$(NAME_CAMELIZED)'\
-\n\t\t\tapp.stack[1].handle.should.be.a 'function'\
-\n\t\t\tdone()\
-\n\t\t\treturn\
\n\n\t\tit 'should return a 200 status code.', (done) ->\
\n\t\t\trequest.get 'http://localhost:3000/$(NAME_CAMELIZED)', (error, response, body) ->\
\n\t\t\t\tresponse.statusCode.should.eql 200\
View
10 .lemmy/javascript
@@ -80,12 +80,12 @@ TESTSUBAPP_JS = "describe('App > $(NAME)', function() {\
\n\tvar should = require('should');\
\n\n\tapp.use('/$(NAME_CAMELIZED)', $(NAME_CAMELIZED));\
\n\tapp.listen(3000);\
+\n\n\tit('should be mounted on the application stack', function(done) {\
+\n\t\tapp.stack[1].route.should.eql('/$(NAME_CAMELIZED)');\
+\n\t\tapp.stack[1].handle.should.be.a('function');\
+\n\t\tdone();\
+\n\t});\
\n\n\tdescribe('\'/$(NAME_CAMELIZED)/\' route', function() {\
-\n\t\tit('should exist.', function(done) {\
-\n\t\t\tapp.stack[1].route.should.eql('/$(NAME_CAMELIZED)');\
-\n\t\t\tapp.stack[1].handle.should.be.a('function');\
-\n\t\t\tdone();\
-\n\t\t});\
\n\n\t\tit('should return a 200 status code.', function(done) {\
\n\t\t\trequest.get('http://localhost:3000/$(NAME_CAMELIZED)', function(error, response, body) {\
\n\t\t\t\tresponse.statusCode.should.eql(200);\

0 comments on commit c5d9f82

Please sign in to comment.
Something went wrong with that request. Please try again.