inline the specConstructor

This commit is contained in:
Colin O'Byrne and JR Boyens
2013-07-24 15:20:15 -07:00
parent 97ce396008
commit 6bb8a91301
2 changed files with 2 additions and 6 deletions

View File

@@ -427,8 +427,6 @@ getJasmineRequireObj().Env = function(j$) {
}; };
}; };
var specConstructor = j$.Spec; // TODO: inline this
var getSpecName = function(spec, currentSuite) { var getSpecName = function(spec, currentSuite) {
return currentSuite.getFullName() + ' ' + spec.description + '.'; return currentSuite.getFullName() + ' ' + spec.description + '.';
}; };
@@ -481,7 +479,7 @@ getJasmineRequireObj().Env = function(j$) {
this.specFactory = function(description, fn, suite) { this.specFactory = function(description, fn, suite) {
totalSpecsDefined++; totalSpecsDefined++;
var spec = new specConstructor({ var spec = new j$.Spec({
id: self.nextSpecId(), id: self.nextSpecId(),
beforeFns: beforeFns(suite), beforeFns: beforeFns(suite),
afterFns: afterFns(suite), afterFns: afterFns(suite),

View File

@@ -77,8 +77,6 @@ getJasmineRequireObj().Env = function(j$) {
}; };
}; };
var specConstructor = j$.Spec; // TODO: inline this
var getSpecName = function(spec, currentSuite) { var getSpecName = function(spec, currentSuite) {
return currentSuite.getFullName() + ' ' + spec.description + '.'; return currentSuite.getFullName() + ' ' + spec.description + '.';
}; };
@@ -131,7 +129,7 @@ getJasmineRequireObj().Env = function(j$) {
this.specFactory = function(description, fn, suite) { this.specFactory = function(description, fn, suite) {
totalSpecsDefined++; totalSpecsDefined++;
var spec = new specConstructor({ var spec = new j$.Spec({
id: self.nextSpecId(), id: self.nextSpecId(),
beforeFns: beforeFns(suite), beforeFns: beforeFns(suite),
afterFns: afterFns(suite), afterFns: afterFns(suite),