require'spec_helper'Dir[File.expand_path('../../../features/support/factories/*.rb',__FILE__)].each{|factory|requirefactory}describeBlogPostdocontext"wiring up"dobefore(:each)do@post=Factory(:post)endit"saves to the database"do@post.should_notbe_nilendendend