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

17 lines
322 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'new_user/dossiers/siret.html.haml', type: :view do
let(:dossier) { create(:dossier) }
before do
sign_in dossier.user
assign(:dossier, dossier)
end
subject! { render }
it 'affiche le formulaire de SIRET' do
expect(rendered).to have_field('Numéro SIRET')
end
end