[fix #1000] export name and first name in api
This commit is contained in:
parent
c4498ece2b
commit
b02282c1d0
5 changed files with 19 additions and 1 deletions
10
spec/serializers/individual_serializer_spec.rb
Normal file
10
spec/serializers/individual_serializer_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue