add test for etablissement
This commit is contained in:
parent
61b6ec5c9d
commit
0b37aef0d9
1 changed files with 23 additions and 0 deletions
23
spec/models/etablissement_spec.rb
Normal file
23
spec/models/etablissement_spec.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Etablissement do
|
||||
describe 'database columns' do
|
||||
it { is_expected.to have_db_column(:siret) }
|
||||
it { is_expected.to have_db_column(:siege_social) }
|
||||
it { is_expected.to have_db_column(:naf) }
|
||||
it { is_expected.to have_db_column(:libelle_naf) }
|
||||
it { is_expected.to have_db_column(:adresse) }
|
||||
it { is_expected.to have_db_column(:numero_voie) }
|
||||
it { is_expected.to have_db_column(:type_voie) }
|
||||
it { is_expected.to have_db_column(:nom_voie) }
|
||||
it { is_expected.to have_db_column(:complement_adresse) }
|
||||
it { is_expected.to have_db_column(:code_postal) }
|
||||
it { is_expected.to have_db_column(:localite) }
|
||||
it { is_expected.to have_db_column(:code_insee_localite) }
|
||||
end
|
||||
|
||||
describe 'associations' do
|
||||
it { is_expected.to belong_to(:dossier) }
|
||||
it { is_expected.to belong_to(:entreprise) }
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue