2018-08-07 16:32:11 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'new_user/dossiers/show.html.haml', type: :view do
|
2018-08-14 15:02:39 +02:00
|
|
|
let(:dossier) { create(:dossier, :en_construction, procedure: create(:procedure)) }
|
2018-08-07 16:32:11 +02:00
|
|
|
|
|
|
|
before do
|
|
|
|
sign_in dossier.user
|
|
|
|
assign(:dossier, dossier)
|
|
|
|
end
|
|
|
|
|
|
|
|
subject! { render }
|
|
|
|
|
2018-08-14 15:02:39 +02:00
|
|
|
it 'renders a summary of the dossier state' do
|
2018-08-08 17:09:02 +02:00
|
|
|
expect(rendered).to have_text("Dossier nº #{dossier.id}")
|
2018-08-14 15:02:39 +02:00
|
|
|
expect(rendered).to have_selector('.status-progress')
|
2018-08-07 16:32:11 +02:00
|
|
|
end
|
|
|
|
end
|