demarches-normaliennes/spec/views/new_user/dossiers/show.html.haml_spec.rb

18 lines
447 B
Ruby
Raw Normal View History

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)) }
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')
end
end