2016-05-26 15:59:50 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
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_name).and_return(:user)
|
|
|
|
end
|
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:user, User.new)
|
2019-01-08 08:20:49 +01:00
|
|
|
render
|
2016-05-26 15:59:50 +02:00
|
|
|
end
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
it 'renders' do
|
|
|
|
expect(rendered).to have_field('Email')
|
|
|
|
expect(rendered).to have_field('Mot de passe')
|
|
|
|
expect(rendered).to have_button('Se connecter')
|
2016-05-26 15:59:50 +02:00
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|