Sha256: 1aad74c15c2705cadd892aec87bc180d86ac66c3a44771c1c4ac8b55b66f9816
Contents?: true
Size: 952 Bytes
Versions: 1
Compression:
Stored size: 952 Bytes
Contents
ExampleModule = { name : 'ExampleModule', utilities : { doFoo : function(){ return 'foo' }, doBar : function(){ return 'bar' } }, randomHook : function(a, b) { return [a, b] }, 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 } }, DSLs : { snake : { some_snake_case_stuff : function(){ return true } }, camel : { someCamelCaseStuff : function() { return true } } } } JSpec.include(ExampleModule)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
visionmedia-jspec-2.8.3 | spec/modules.js |