demarches-normaliennes/spec/features/users/sign_out_spec.rb
simon lehericey 149b0b5797 Fix Sign out
2019-08-14 16:58:50 +02:00

17 lines
342 B
Ruby

require 'spec_helper'
feature 'Sign out' do
context 'when a user is logged in' do
let(:user) { create(:administrateur).user }
before { login_as user, scope: :user }
scenario 'he can sign out' do
visit dossiers_path
click_on 'Se déconnecter'
expect(page).to have_current_path(root_path)
end
end
end