21 lines
527 B
Ruby
21 lines
527 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe 'users/sessions/new', 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 électronique')
|
|
expect(rendered).to have_field('Mot de passe')
|
|
expect(rendered).to have_button('Se connecter')
|
|
end
|
|
end
|