Add on information entreprise :

- SIRET Siège social
	- Code naf
	- Code effectif
	- Numéro TVA intracommunautaire
	- Exercices
This commit is contained in:
Xavier J 2015-11-16 11:23:29 +01:00
parent 803ca14f72
commit dd8bafab49
18 changed files with 233 additions and 21 deletions

View file

@ -19,5 +19,6 @@ describe Etablissement do
describe 'associations' do
it { is_expected.to belong_to(:dossier) }
it { is_expected.to belong_to(:entreprise) }
it { is_expected.to have_many(:exercices) }
end
end

View file

@ -0,0 +1,13 @@
require 'spec_helper'
describe Exercice do
describe 'database columns' do
it { is_expected.to have_db_column(:ca) }
it { is_expected.to have_db_column(:dateFinExercice) }
it { is_expected.to have_db_column(:date_fin_exercice_timestamp) }
end
describe 'associations' do
it { is_expected.to belong_to(:etablissement) }
end
end