a4d6692bc6
Update app/components/dsfr/input_component/input_component.html.haml Co-authored-by: Colin Darie <colin@darie.eu>
19 lines
507 B
Ruby
19 lines
507 B
Ruby
describe 'users/sessions/new.html.haml', type: :view do
|
|
let(:dossier) { create :dossier }
|
|
|
|
before(:each) do
|
|
allow(view).to receive(:devise_mapping).and_return(Devise.mappings[:user])
|
|
allow(view).to receive(:resource).and_return(User.new)
|
|
end
|
|
|
|
before do
|
|
assign(:user, User.new)
|
|
render
|
|
end
|
|
|
|
it 'renders' do
|
|
expect(rendered).to have_field('Adresse éléctronique')
|
|
expect(rendered).to have_field('Mot de passe')
|
|
expect(rendered).to have_button('Se connecter')
|
|
end
|
|
end
|