visionmedia-jspec 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/README.rdoc +4 -4
- data/bin/jspec +1 -1
- data/jspec.gemspec +1 -1
- data/lib/jspec.js +5 -3
- metadata +1 -1
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -470,10 +470,10 @@ may simply be implemented as module methods.
|
|
470
470
|
- afterAssertion(assertion) : after an assertion has been made : (no return value)
|
471
471
|
- addingMatcher(name, body) : unprocessed matcher name and body : (no return value)
|
472
472
|
- addingSuite(suite) : adding Suite instance to JSpec : (no return value)
|
473
|
-
- beforeSuite(suite) : before running of suite
|
474
|
-
- afterSuite(suite) : after running of suite
|
475
|
-
- beforeSpec(spec) : before running of spec
|
476
|
-
- afterSpec(spec) : after running of spec
|
473
|
+
- beforeSuite(suite) : before running of suite (describe block) : (no return value)
|
474
|
+
- afterSuite(suite) : after running of suite (describe block) : (no return value)
|
475
|
+
- beforeSpec(spec) : before running of spec (it block) : (no return value)
|
476
|
+
- afterSpec(spec) : after running of spec (it block) : (no return value)
|
477
477
|
- reporting(options) : called before reporting : (no return value)
|
478
478
|
- evaluatingBody(dsl, matchers, context, contents) : evaluating body contents, with the given context, matchers and dsl. : (no return value)
|
479
479
|
|
data/bin/jspec
CHANGED
data/jspec.gemspec
CHANGED
data/lib/jspec.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
JSpec = {
|
7
7
|
|
8
|
-
version : '2.4.
|
8
|
+
version : '2.4.1',
|
9
9
|
suites : [],
|
10
10
|
modules : [],
|
11
11
|
allSuites : [],
|
@@ -1238,9 +1238,9 @@
|
|
1238
1238
|
suite.ran = true
|
1239
1239
|
suite.hook('before'), hook('beforeSuite', suite)
|
1240
1240
|
each(suite.specs, function(spec) {
|
1241
|
-
suite.hook('before_each')
|
1241
|
+
suite.hook('before_each')
|
1242
1242
|
JSpec.runSpec(spec)
|
1243
|
-
suite.hook('after_each'),
|
1243
|
+
suite.hook('after_each'),
|
1244
1244
|
})
|
1245
1245
|
if (suite.hasSuites()) {
|
1246
1246
|
each(suite.suites, function(suite) {
|
@@ -1273,9 +1273,11 @@
|
|
1273
1273
|
runSpec : function(spec) {
|
1274
1274
|
this.currentSpec = spec
|
1275
1275
|
if (option('profile')) console.time(spec.description)
|
1276
|
+
hook('beforeSpec', spec)
|
1276
1277
|
try { this.evalBody(spec.body) }
|
1277
1278
|
catch (e) { fail(e) }
|
1278
1279
|
spec.runDeferredAssertions()
|
1280
|
+
hook('afterSpec', spec)
|
1279
1281
|
if (option('profile')) console.timeEnd(spec.description)
|
1280
1282
|
destub()
|
1281
1283
|
this.stats.specsFinished++
|