demarches-normaliennes/spec/views/new_gestionnaire/dossiers/show.html.haml_spec.rb
2018-09-25 16:47:16 +02:00

21 lines
574 B
Ruby

describe 'new_gestionnaire/dossiers/show.html.haml', type: :view do
let(:current_gestionnaire) { create(:gestionnaire) }
let(:dossier) { create(:dossier, :en_construction) }
before do
sign_in current_gestionnaire
assign(:dossier, dossier)
end
subject! { render }
it 'renders the header' do
expect(rendered).to have_text("Dossier nº #{dossier.id}")
end
it 'renders the dossier infos' do
expect(rendered).to have_text('Identité')
expect(rendered).to have_text('Demande')
expect(rendered).to have_text('Pièces jointes')
end
end