Fix dossier and invite dossier tests

This commit is contained in:
Xavier J 2016-12-16 09:56:41 +01:00
parent fb16d4582d
commit 2ac0d2241f
2 changed files with 3 additions and 2 deletions

View file

@ -4,8 +4,8 @@ describe DossierDecorator do
let(:dossier) { create(:dossier, created_at: Time.new(2015, 12, 24, 14, 10), updated_at: Time.new(2015, 12, 24, 14, 10)) }
subject { dossier.decorate }
describe 'created_at' do
subject { super().created_at }
describe 'first_creation' do
subject { super().first_creation }
it { is_expected.to eq('24/12/2015 14:10') }
end

View file

@ -12,4 +12,5 @@ describe InviteDossierFacades do
end
it { expect(subject.dossier).to eq dossier }
it { expect(subject.commentaire_email).to eq email }
end