Sha256: 45c4fd195a78eca52520e7dfb1c7650563567a7ce9ce98a2eb22be43a4a475ec

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

# 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
  scenario 'user signs out successfully' do
    user = FactoryGirl.create(:user)
    signin(user.email, user.password)
    expect(page).to have_content I18n.t 'devise.sessions.signed_in'
    click_link 'Sign out'
    expect(page).to have_content I18n.t 'devise.sessions.signed_out'
  end

end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_apps_testing-0.3.12 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.11 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.10 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.9 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb