aboutsummaryrefslogblamecommitdiffstats
path: root/spec/models/refinery/blog/comment_spec.rb
blob: 69430ac0a746a47dafa2318056fc014618f78553 (plain) (tree)
1
2
3
4
5
6
7
8
9



                     
                                     



                                                           
                                       


                               
                                            




           
require 'spec_helper'

module Refinery
  module Blog
    describe Comment, type: :model do
      context "wiring up" do
        let(:comment) { FactoryGirl.create(:blog_comment) }

        it "saves" do
          expect(comment).not_to be_nil
        end

        it "has a blog post" do
          expect(comment.post).not_to be_nil
        end
      end
    end
  end
end