spec/modules.js in visionmedia-jspec-2.8.2 vs spec/modules.js in visionmedia-jspec-2.8.3
- old
+ new
@@ -1,20 +1,22 @@
ExampleModule = {
+ name : 'ExampleModule',
utilities : {
doFoo : function(){ return 'foo' },
doBar : function(){ return 'bar' }
},
randomHook : function(a, b) {
return [a, b]
},
- beforeSpec : function() { addedBeforeSpec = true, addedBeforeSpecHook = false },
- afterSpec : function() { addedAfterSpec = true, addedAfterSpecHook = false },
- beforeSuite : function() { addedBeforeSuite = true },
- afterSuite : function() {
- addedAfterSuite = true
- addedBeforeSuite = addedBeforeSpec = addedAfterSpec = false
- },
+ beforeSpec : function() { addedBeforeSpec = true; doFoo() },
+ afterSpec : function() { addedAfterSpec = true },
+ beforeSuite : function() { addedBeforeSuite = true },
+ afterSuite : function() { addedAfterSuite = true },
+ checkJSpecContext : function(){ return each },
+ checkContext : function() { return fixture('test') },
+ checkModuleContext : function() { return this.name },
+ checkUtilityContext : function() { return doFoo() },
matchers : {
be_foo_bar : function() {
return true
}
},
\ No newline at end of file