This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| coffee spec/app.spec.coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.env.NODE_ENV = 'test' unless process.env.NODE_ENV? | |
| sys = require "sys" | |
| _ = require "underscore" | |
| dir = "jasmine-node/lib/jasmine-node/" | |
| filename = "jasmine-2.0.0.rc1" | |
| # Copy 'it', 'describe',... to global | |
| for key, value of require("#{dir}#{filename}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node --debug-brk node_modules/jasmine-node/lib/jasmine-node/cli.js \ | |
| --coffee specs/app.spec.coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node --debug-brk node_modules/jasmine-node/lib/jasmine-node/cli.js \ | |
| specs/app.spec.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //From https://gist.github.com/637764 | |
| $(function() { | |
| var gistPrefix = 'http://gist.github.com/', | |
| // Cache document.write so that it can be restored once all Gists have been | |
| // embedded. | |
| cachedWrite = document.write, | |
| body = $('body'), | |
| // Map each p.gist to an object that contains the paragraph to be replaced | |
| // and the Gist's identifier. | |
| gists = $('p.gist').map(function(n, p) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = require '../../server' | |
| Mongo = require '../../app/lib/mongo' | |
| # Use Jasime reporter to implement once-per entire suite setup and teardown | |
| getEnv().addReporter { | |
| reportRunnerStarting: (runner) -> | |
| app.listen 3001 | |
| reportRunnerResults: (runner) -> | |
| Mongo.close() | |
| app.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| generate("cucumber") | |
| run("rm -rf features") | |
| git(:clone => "git://gitorious.org/workshop-features/features.git") | |
| inside("features") { run("rm -rf .git") } | |
| run("echo log/ > .gitignore; echo 'db/*.sqlite3' >> .gitignore;") | |
| inside("config") { run("echo 'default: --format pretty' > cucumber.yml") } | |
| rake("db:migrate") |
NewerOlder