2015-08-13 15:55:19 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'dossiers/show.html.haml', type: :view do
|
|
|
|
let(:dossier) { create(:dossier, :with_entreprise) }
|
|
|
|
before do
|
|
|
|
assign(:dossier, dossier)
|
|
|
|
assign(:entreprise, dossier.entreprise.decorate)
|
|
|
|
assign(:etablissement, dossier.etablissement)
|
|
|
|
|
|
|
|
render
|
|
|
|
end
|
|
|
|
it 'have autorisation_donnees check box' do
|
2015-08-14 18:07:40 +02:00
|
|
|
expect(rendered).to have_css('#dossier_autorisation_donnees')
|
2015-08-13 15:55:19 +02:00
|
|
|
end
|
|
|
|
end
|