aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/users/sign_out_spec.rb
blob: e1297b3e5c460de58b5bc6da2dd1cb9b64299c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf-8 -*-
require 'spec_helper'

# Feature: Sign out
#   As a user
#   I want to sign out
#   So I can protect my account from unauthorized access
feature 'Sign out', :devise do

  # Scenario: User signs out successfully
  #   Given I am signed in
  #   When I sign out
  #   Then I see a signed out message

  # FIXME #816
  # scenario 'user signs out successfully' do
  #   user = FactoryGirl.create(:user)
  #   user.confirm!
  #   login_as(user, :scope => "user")
  #   expect(page).to have_content I18n.t 'devise.sessions.signed_in'
  #   click_link user.name
  #   click_link 'Déconnexion'
  #   expect(page).to have_content I18n.t 'devise.sessions.signed_out'
  # end

end