require 'rails_helper'

RSpec.describe Licitacao::DocumentoDaAta, type: :model do
  it { is_expected.to belong_to(:ata_de_registro_de_precos).class_name("Licitacao::AtaDeRegistroDePrecos") }
	it { is_expected.to belong_to(:usuario) }
	it { is_expected.to belong_to(:modelo_do_documento).class_name("Licitacao::ModeloDeDocumento") }

	[:ata_de_registro_de_precos_id, :usuario_id].each do |atributo|
		it { is_expected.to validate_presence_of atributo }
	end
end
