FactoryBot.define do
	factory :ppa_valor_do_convenio, class: 'Ppa::ValorDoConvenio' do
		convenio_id {
			Ppa::Convenio.find_or_create_by!( FactoryBot.attributes_for( :ppa_convenio ) ).id
		}

		tipo_de_despesa_id {
			Base::TipoDeDespesa.find_or_create_by!( FactoryBot.attributes_for( :despesa_corrente ) ).id
		}

		exercicio {2016}
		valor {9.99}
	end
end
