add database cleaner
add factory girl fix tests rename dossier_pdf into piece_jointe rename ref_piece_jointe into content
This commit is contained in:
parent
c16d7a12f2
commit
3c57643f76
48 changed files with 338 additions and 174 deletions
19
db/seeds.rb
19
db/seeds.rb
|
@ -8,24 +8,5 @@
|
|||
|
||||
Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')].sort.each { |seed| load seed }
|
||||
|
||||
#SEEDS DEV, TEST
|
||||
User.create({
|
||||
email: 'test@localhost.com',
|
||||
password: 'password'
|
||||
})
|
||||
|
||||
@dossier = Dossier.create({
|
||||
id: 10000,
|
||||
nom_projet: 'Projet de test',
|
||||
description: 'Description de test.',
|
||||
montant_projet: 12000,
|
||||
montant_aide_demande: 3000,
|
||||
date_previsionnelle: '20/01/2016',
|
||||
mail_contact: 'test@test.com',
|
||||
ref_formulaire: '12'
|
||||
})
|
||||
|
||||
@entreprise = Entreprise.create({id: 10000, siren: 431449040, date_creation: 1437665347, dossier: @dossier, raison_sociale: 'Coucou', code_effectif_entreprise: '00'})
|
||||
@etablissement = Etablissement.create({id: 10000, siret: 43144904000028, siege_social: true, adresse: '50 avenue des champs élysées Paris 75008', entreprise: @entreprise, dossier: @dossier})
|
||||
|
||||
Commentaire.create({email: 'test@test.com', body: 'Commentaire de test', dossier: @dossier})
|
Loading…
Add table
Add a link
Reference in a new issue