Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implemented the EXECUTABLE_CS and TESTEXECUTABLE_CS templates.

  • Loading branch information...
commit 40ff29e82f1883e2a15d5c3ca316e056926bad92 1 parent d699426
@mr-rock mr-rock authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 .alice/coffeescript
View
13 .alice/coffeescript
@@ -1,3 +1,16 @@
+EXECUTABLE_CS = "\#!/usr/bin/env node\
+\n\nconsole.log('Test')"
+
+TESTEXECUTABLE_CS = "describe '$(NAME)', () ->\
+\n\t$(NAME_CAMELIZED) = require('../../$(SOURCES_DIRECTORY)/$(EXECUTABLES_DIRECTORY)/$(NAME_CAMELIZED)')\
+\n\texec = require('child_process').exec\
+\n\tshould = require('should')\
+\n\n\tit 'should execute.', (done) ->\
+\n\t\texec '$(COFFEE) $(SOURCES_DIRECTORY)/$(EXECUTABLES_DIRECTORY)/$(NAME_CAMELIZED)', (error, stdout, stdin) ->\
+\n\t\t\tshould.not.exist(error)\
+\n\t\t\tdone()\
+\n\t\t\treturn"
+
MODULE_CS = "module.exports = {\
\n\t\#example = 0\
\n\n\tmethod1: ->\
Please sign in to comment.
Something went wrong with that request. Please try again.