component extends="DBTestCase"{
function setupColdBox() {
given( "I have a two posts", function(){
when( "I visit the home page", function(){
then( "There should be two posts on the page", function(){
queryExecute( "INSERT INTO posts (body) VALUES ('Test Post One')" );
queryExecute( "INSERT INTO posts (body) VALUES ('Test Post Two')" );
var event = execute( event = "main.index", renderResults = true );
var content = event.getCollection().cbox_rendered_content;
expect(content).toMatch( "Test Post One" );
expect(content).toMatch( "Test Post Two" );