FactoryBot.define do
	factory :licitacao_rodada, class: 'Licitacao::Rodada' do
		lote_id {
			lote = Licitacao::Lote.find_or_create_by!(FactoryBot.attributes_for(:licitacao_lote, :completo))
			lote.update_column(:lances_abertos, true)
			
			lote.id
		}
	end
end
