Sha256: 48ec94e278f94b833155c9119d099db9e87e627152bd5379fd5e99cb179cdd9e
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
require 'spec_helper' include Warden::Test::Helpers Warden.test_mode! # Feature: User delete # As a user # I want to delete my user profile # So I can close my account feature 'User delete', :devise, js: true do after(:each) do Warden.test_reset! end # Scenario: User can delete own account # Given I am signed in # When I delete my account # Then I should see an account deleted message scenario 'user can delete own account', :slow do user = FactoryGirl.create(:user) login_as(user, :scope => :user) visit edit_user_registration_path(user) click_button 'Cancel my account' page.driver.browser.switch_to.alert.accept expect(page).to have_content 'Bye! Your account was successfully cancelled. We hope to see you again soon.' end end
Version data entries
2 entries across 2 versions & 1 rubygems