diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 15:12:41 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-03 15:12:41 +0000 |
commit | 67daaf4021a180166ad063e3a75ea777e96586a6 (patch) | |
tree | 9ba7459c9c149e151fd31fa1fa7f31a186602eff /spec/channels | |
parent | 584ccdaf68710dec2c717a010cbab2610c0155ed (diff) | |
download | gitlab-ce-67daaf4021a180166ad063e3a75ea777e96586a6.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/channels')
-rw-r--r-- | spec/channels/application_cable/connection_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/channels/application_cable/connection_spec.rb b/spec/channels/application_cable/connection_spec.rb index c10e0c0cab4..affde0095cf 100644 --- a/spec/channels/application_cable/connection_spec.rb +++ b/spec/channels/application_cable/connection_spec.rb @@ -3,15 +3,11 @@ require 'spec_helper' RSpec.describe ApplicationCable::Connection, :clean_gitlab_redis_sessions do - let(:session_id) { Rack::Session::SessionId.new('6919a6f1bb119dd7396fadc38fd18d0d') } + include SessionHelpers context 'when session cookie is set' do before do - Gitlab::Redis::Sessions.with do |redis| - redis.set("session:gitlab:#{session_id.private_id}", Marshal.dump(session_hash)) - end - - cookies[Gitlab::Application.config.session_options[:key]] = session_id.public_id + stub_session(session_hash) end context 'when user is logged in' do |