Sha256: d8141e46d5f944a1f34a5226e12ec84b28778efa37868b42620f002608ed8565

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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 = FactoryBot.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

1 entries across 1 versions & 1 rubygems

Version Path
rails_apps_testing-0.3.13 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb