require 'rails_helper'

RSpec.describe Answer, type: :model do
  it {  should belong_to :question }
  it {  should belong_to :user }
  it {  should validate_presence_of :body }
  it {  should have_many(:attachments).dependent(:destroy) }
  it {  should accept_nested_attributes_for :attachments }
end
