2018-08-14 13:39:49 +02:00
|
|
|
|
describe 'shared/dossiers/identite_entreprise.html.haml', type: :view do
|
|
|
|
|
before { render 'shared/dossiers/identite_entreprise.html.haml', etablissement: etablissement }
|
2017-10-17 14:58:34 +02:00
|
|
|
|
|
|
|
|
|
context "there is an association" do
|
2018-04-05 18:54:33 +02:00
|
|
|
|
let(:etablissement) { create(:etablissement, :is_association) }
|
2017-10-17 14:58:34 +02:00
|
|
|
|
|
|
|
|
|
context "date_publication is missing on rna" do
|
2018-04-05 18:54:33 +02:00
|
|
|
|
before { etablissement.update(association_date_publication: nil) }
|
2017-10-17 14:58:34 +02:00
|
|
|
|
|
|
|
|
|
it "can render without error" do
|
|
|
|
|
expect(rendered).to include("Date de publication :")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|