require'spec_helper'Dir[File.expand_path('../../../features/support/factories/*.rb',__FILE__)].each{|factory|requirefactory}describeBlogCategorydocontext"wiring up"dobefore(:each)do@category=Factory(:blog_category)endit"saves"do@category.should_notbe_nilendit"has a blog post"doBlogPost.last.categories.shouldinclude(@category)endendend