add spec for features France connect connection

This commit is contained in:
Xavier J 2015-10-06 17:06:59 +02:00
parent a4661c932f
commit 8445944b76
2 changed files with 17 additions and 1 deletions

View file

@ -6,7 +6,7 @@
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%>
<%= link_to "Connect with France Connect", '/france_connect' %><br />
<%= link_to "Connect with France Connect", '/france_connect', id: 'france_connect' %><br />
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />

View file

@ -0,0 +1,16 @@
require 'spec_helper'
feature 'France Connect Connexion' do
context 'when user is on login page' do
before do
visit new_user_session_path
end
scenario 'link to France Connect is present' do
expect(page).to have_css('a#france_connect')
end
end
end