demarches-normaliennes/spec/serializers/dossiers_serializer_spec.rb
LeSim 56545933a9 [fix #504] Dossier: initiated -> en_construction
The change must not impact the api
2017-12-15 11:52:09 +01:00

11 lines
335 B
Ruby

describe DossiersSerializer do
describe '#attributes' do
subject { DossiersSerializer.new(dossier).serializable_hash }
context 'when the dossier is en_construction' do
let(:dossier) { create(:dossier, :en_construction) }
it { is_expected.to include(initiated_at: dossier.en_construction_at) }
end
end
end