README.rdoc in visionmedia-jspec-2.4.0 vs README.rdoc in visionmedia-jspec-2.4.1
- old
+ new
@@ -468,13 +468,13 @@
- requiring(dependency, message) : requiring a dependency : (no return value)
- beforeAssertion(assertion) : before an assertion has been made : (no return value)
- afterAssertion(assertion) : after an assertion has been made : (no return value)
- addingMatcher(name, body) : unprocessed matcher name and body : (no return value)
- addingSuite(suite) : adding Suite instance to JSpec : (no return value)
- - beforeSuite(suite) : before running of suite : (no return value)
- - afterSuite(suite) : after running of suite : (no return value)
- - beforeSpec(spec) : before running of spec : (no return value)
- - afterSpec(spec) : after running of spec : (no return value)
+ - beforeSuite(suite) : before running of suite (describe block) : (no return value)
+ - afterSuite(suite) : after running of suite (describe block) : (no return value)
+ - beforeSpec(spec) : before running of spec (it block) : (no return value)
+ - afterSpec(spec) : after running of spec (it block) : (no return value)
- reporting(options) : called before reporting : (no return value)
- evaluatingBody(dsl, matchers, context, contents) : evaluating body contents, with the given context, matchers and dsl. : (no return value)
For example you may wish to proxy files which are being executed, simply implement the
executing method like below. This example will stop execution of any file matching /matchers/.