visionmedia-jspec 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,9 @@
1
1
 
2
+ === 2.4.1 / 2009-06-30
3
+
4
+ * Moved beforeSpec and afterSpec hook into proper positions
5
+ allowing for additional assertions within afterSpec.
6
+
2
7
  === 2.4.0 / 2009-06-30
3
8
 
4
9
  * Added hook() and hookImmutable()
@@ -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 : (no return value)
474
- - afterSuite(suite) : after running of suite : (no return value)
475
- - beforeSpec(spec) : before running of spec : (no return value)
476
- - afterSpec(spec) : after running of spec : (no return value)
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
@@ -11,7 +11,7 @@ require 'fileutils'
11
11
  RHINO = 'java org.mozilla.javascript.tools.shell.Main'
12
12
 
13
13
  program :name, 'JSpec'
14
- program :version, '2.4.0'
14
+ program :version, '2.4.1'
15
15
  program :description, 'JavaScript BDD Testing Framework'
16
16
  default_command :bind
17
17
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "2.4.0"
5
+ s.version = "2.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
@@ -5,7 +5,7 @@
5
5
 
6
6
  JSpec = {
7
7
 
8
- version : '2.4.0',
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'), hook('beforeSpec', spec)
1241
+ suite.hook('before_each')
1242
1242
  JSpec.runSpec(spec)
1243
- suite.hook('after_each'), hook('afterSpec', spec)
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++
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-jspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk