diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-05 06:32:05 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-07-05 06:32:05 +0000 |
commit | 3db2f327594e134729a0ca2f48a748bb28ab7d6c (patch) | |
tree | 661033b988897aaf506c0deaf457c2002e17d51b /spec/features/users/active_sessions_spec.rb | |
parent | baab4cddb091c0aa9649fecc340b8b343747ba83 (diff) | |
download | gitlab-ce-3db2f327594e134729a0ca2f48a748bb28ab7d6c.tar.gz |
Enable Capybara/FeatureMethods cop
Diffstat (limited to 'spec/features/users/active_sessions_spec.rb')
-rw-r--r-- | spec/features/users/active_sessions_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/users/active_sessions_spec.rb b/spec/features/users/active_sessions_spec.rb index 631d7e3bced..25349b5d036 100644 --- a/spec/features/users/active_sessions_spec.rb +++ b/spec/features/users/active_sessions_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' -feature 'Active user sessions', :clean_gitlab_redis_shared_state do - scenario 'Successful login adds a new active user login' do +describe 'Active user sessions', :clean_gitlab_redis_shared_state do + it 'Successful login adds a new active user login' do now = Time.zone.parse('2018-03-12 09:06') Timecop.freeze(now) do user = create(:user) @@ -24,7 +24,7 @@ feature 'Active user sessions', :clean_gitlab_redis_shared_state do end end - scenario 'Successful login cleans up obsolete entries' do + it 'Successful login cleans up obsolete entries' do user = create(:user) Gitlab::Redis::SharedState.with do |redis| @@ -38,7 +38,7 @@ feature 'Active user sessions', :clean_gitlab_redis_shared_state do end end - scenario 'Sessionless login does not clean up obsolete entries' do + it 'Sessionless login does not clean up obsolete entries' do user = create(:user) personal_access_token = create(:personal_access_token, user: user) @@ -54,7 +54,7 @@ feature 'Active user sessions', :clean_gitlab_redis_shared_state do end end - scenario 'Logout deletes the active user login' do + it 'Logout deletes the active user login' do user = create(:user) gitlab_sign_in(user) expect(current_path).to eq root_path |