Sha256: 306fb507e3d0def8cf1679b083e92d1bf82570e3e96aeee8e05143aa319c7bb9

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 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 'Signed in successfully.'
    click_link 'Sign out'
    expect(page).to have_content 'Signed out successfully.'
  end

end


Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rails_apps_testing-0.3.8 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.7 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.6 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.5 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.4 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.3 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.2 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.1 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_testing-0.3.0 lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb
rails_apps_pages-0.4.9 lib/generators/pages/users/templates/spec/features/users/sign_out_spec.rb
rails_apps_pages-0.4.8 lib/generators/pages/users/templates/spec/features/users/sign_out_spec.rb
rails_apps_pages-0.4.7 lib/generators/pages/users/templates/spec/features/users/sign_out_spec.rb