I'm trying to run the givenwhenthen node module on Ubuntu 12.04 for the first time and I've followed the instructions for setup listed under the "Running Stories" header on their site here.
I've added the task test:acceptance to my cakefile in /~/node_modules/givenwhenthen/examples/, like so:
task 'test:acceptance', 'Runs the acceptance tests', (options = {}) ->
givenwhenthen.runner.runStories(options)
When I run cake from that same directory I get the following paths listed:
CakePHP v2.2.2 Console
App: examples
Path: /home/kyoob/node_modules/givenwhenthen/examples/
Root: /home/kyoob/node_modules/givnwhenthen
Core: /usr/share/php/cakephp/lib
I do not see test:acceptance under "Available Shells" and I don't see an "Available Tasks" section at all. Should that be listed here?
When I run cake test:acceptance from this directory here is the message I get:
Shell class Test:acceptanceShell could not be found.
#0 /usr/share/php/cakephp/lib/Cake/Console/ShellDispatcher.php(191): ShellDispatcher->_getShell('test:acceptance')
#1 /usr/share/php/cakephp/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /usr/share/php/cakephp/lib/Cake/Console/cake.php(43): ShellDispatcher::run(Array)
#3 {main}
I've tried with and without sudo to the same effect. I am new to the world of compiling CoffeeScript files, so I fear this is a rookie mistake on my part. Am I trying to compile from the wrong directory? Have I missed something obvious?