add database cleaner
add factory girl fix tests rename dossier_pdf into piece_jointe rename ref_piece_jointe into content
This commit is contained in:
parent
c16d7a12f2
commit
3c57643f76
48 changed files with 338 additions and 174 deletions
15
spec/views/dossiers/show.html.haml_spec.rb
Normal file
15
spec/views/dossiers/show.html.haml_spec.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
expect(rendered).to have_css('#autorisation_donnees')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue