Add column created_at on cerfa and piece_justificative

This commit is contained in:
Xavier J 2016-03-14 17:30:22 +01:00
parent abfb6367d6
commit 26431ac528
8 changed files with 27 additions and 8 deletions

View file

@ -172,6 +172,7 @@ describe API::V1::DossiersController do
subject { super().first }
it { expect(subject.keys.include?(:url)).to be_truthy }
it { expect(subject[:created_at]).not_to be_nil }
it { expect(subject.keys.include?(:type_de_piece_justificative)).to be_truthy }
describe 'type de piece justificative' do
@ -242,6 +243,7 @@ describe API::V1::DossiersController do
subject { super()[:cerfa] }
it { expect(subject[:created_at]).not_to be_nil }
it { expect(subject[:url]).to match /^http:\/\/.*downloads.*_CERFA\.pdf$/ }
end