Skip to content

Commit

Permalink
switched from jasmine-node to mocha and modified all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davybrion committed Jan 30, 2012
1 parent daa2353 commit 6b1b25c
Show file tree
Hide file tree
Showing 28 changed files with 440 additions and 469 deletions.
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.dynamicHelpers({
});

app.configure(function(){
app.use(express.logger('dev'));
// app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser());
Expand Down
2 changes: 1 addition & 1 deletion lib/entities/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var activitySchema = new Schema({
});

activitySchema.methods.addPerformedWork = function(date, hours) {
var i = 0;
var i = 0, length;
for (i = 0, length = this.performedWork.length; i<length; i++) {
if (this.performedWork[i].date.getFullYear() === date.getFullYear() &&
this.performedWork[i].date.getMonth() === date.getMonth() &&
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"devDependencies" :
{
"node-jslint-all" : "= 0.2.0",
"jasmine-node" : "= 1.0.12",
"mocha" : ">= 0.10.2",
"should" : ">= 0.5.1",
"request" : ">= 2.1.0"
}
}
25 changes: 0 additions & 25 deletions spec/db/mongoose_helper.js

This file was deleted.

78 changes: 0 additions & 78 deletions spec/helper_functions.js

This file was deleted.

21 changes: 0 additions & 21 deletions spec/rest_api/request_helper.js

This file was deleted.

3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/jasmine-node/bin/jasmine-node spec
node_modules/mocha/bin/mocha $(find test -name "*Spec.js") $@

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 6b1b25c

Please sign in to comment.