demarches-normaliennes/spec/serializers/individual_serializer_spec.rb
2017-12-11 15:29:56 +01:00

10 lines
314 B
Ruby

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