2017-12-14 15:51:45 +01:00
|
|
|
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) }
|
|
|
|
|
2021-12-06 15:49:17 +01:00
|
|
|
it { is_expected.to include(initiated_at: dossier.depose_at) }
|
2018-10-08 17:56:18 +02:00
|
|
|
it { is_expected.to include(state: 'initiated') }
|
2017-12-14 15:51:45 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|