require 'rails_helper'

RSpec.describe Comment, type: :model do

  before(:each) do
    @question = FactoryGirl.create(:comment_question)
    @answer = FactoryGirl.create(:comment_answer)
  end

  describe 'Polymorphism' do

    context 'Comment can only be associated with a question' do

      it {should belong_to(:commentable)}
    end
  end
end

require 'rails_helper'

RSpec.describe Comment, type: :model do

  before(:each) do
    @question = FactoryGirl.create(:comment_question)
    @answer = FactoryGirl.create(:comment_answer)
  end
  binding.pry

  describe 'Polymorphism' do

    context 'Comment can only be associated with a question' do

      it {should belong_to(:commentable)}
    end
  end
end

Fix error with FactoryGirl. Now 100% complete.
Fix error with FactoryGirl. Now 100% complete.
