[fix #1000] export name and first name in api

This commit is contained in:
Simon Lehericey 2017-12-11 15:15:03 +01:00
parent c4498ece2b
commit b02282c1d0
5 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,10 @@
describe IndividualSerializer do
describe '#attributes' do
let(:individual){ Individual.create(nom: 'nom', prenom: 'prenom') }
subject { IndividualSerializer.new(individual).serializable_hash }
it { is_expected.to include(nom: 'nom') }
it { is_expected.to include(prenom: 'prenom') }
end
end