aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/blog_categories_spec.rb
blob: af10b3a6493267f3e7787bf373fb38fe9eb13c2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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