it( title="can handle binding", body=function( data ){
expect( data.keep ).toBeTrue();
}, data={ keep = true } );
// Complex Example. Let's iterate over a bunch of files and create dynamic specs
for( var filePath in files ){
title="#getFileFromPath( filePath )# should be valid JSON",
// pass in a struct of data to the spec for later evaluation
data={ filePath = filePath },
// the spec closure accepts the data for later evaluation
var json = fileRead( data.filePath );
var isItJson = isJSON( json );
expect( json ).notToBeEmpty();
expect( isItJson ).toBeTrue();
var jsonData = deserializeJSON(json);
if( getFileFromPath( filePath ) != "index.json"){
expect( jsonData ).toHaveKey( "name" );
expect( jsonData ).toHaveKey( "type" );