Skip to content

Commit

Permalink
rename context.name => context.description, and make context.name be …
Browse files Browse the repository at this point in the history
…the last level only
  • Loading branch information
cloudhead committed Jun 19, 2010
1 parent cd4a763 commit a532f17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/vows/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ this.Context = function (vow, ctx, env) {
else { process.nextTick(emit) }
};
});
this.name = [
ctx.name || '',
this.name = vow.description;
this.title = [
ctx.title || '',
vow.description || ''
].join(/^[#.:]/.test(vow.description) ? '' : ' ').trim();
};
Expand Down
2 changes: 1 addition & 1 deletion lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ this.Suite.prototype = new(function () {
// Holds the current test or context
var vow = Object.create({
callback: ctx.tests[item],
context: ctx.name,
context: ctx.title,
description: item,
binding: ctx.env,
status: null,
Expand Down

0 comments on commit a532f17

Please sign in to comment.