diff options
Diffstat (limited to 'spec/models/blog_categories_spec.rb')
-rw-r--r-- | spec/models/blog_categories_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/models/blog_categories_spec.rb b/spec/models/blog_categories_spec.rb index d97172c..90d9e22 100644 --- a/spec/models/blog_categories_spec.rb +++ b/spec/models/blog_categories_spec.rb @@ -1,20 +1,21 @@ require 'spec_helper' +Dir[File.expand_path('../../../features/support/factories/*.rb', __FILE__)].each{|factory| require factory} describe BlogCategory do context "wiring up" do - + before(:each) do @category = Factory(:blog_category) end - + it "saves" do @category.should_not be_nil end - + it "has a blog post" do BlogPost.last.categories.should include(@category) end - + end - + end
\ No newline at end of file |