Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

passing spec, not description

  • Loading branch information...
commit d709590bcfeb7ae812d07beae15637abbbfebf98 1 parent 4fdd39b
@refractalize authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 cupoftea.js
View
9 cupoftea.js
@@ -97,7 +97,7 @@ var TopSpec = function (runStack) {
runStack.runSpec(function () {
runStack.pushCurrentSpec(spec, definition);
},function (spec, exception) {
- results.print(spec.fullDescription(), exception);
+ results.print(spec, exception);
});
} while (!spec.isFinished());
},
@@ -230,12 +230,13 @@ var RunStack = function () {
};
this.results = function (exception) {
- results.print(deepestSpec.fullDescription(), exception);
+ results.print(deepestSpec, exception);
};
};
var SimpleResults = function () {
- this.print = function (desc, exception) {
+ this.print = function (spec, exception) {
+ var desc = spec.fullDescription();
if (!exception) {
sys.print(desc + " OK\n");
} else {
@@ -256,7 +257,7 @@ var SimpleResults = function () {
var RspecResults = function () {
var exceptions = [];
- this.print = function (desc, exception) {
+ this.print = function (spec, exception) {
if (!exception) {
sys.print('.');
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.