diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-21 21:12:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-21 21:12:45 +0300 |
commit | 6be1f63eb6ca987f959c18576bb9042b9ee7726b (patch) | |
tree | cb15e23f3087776b54c4190d9aec4aa0c507ffb5 /spec/channels/application_cable | |
parent | 48fc1ad8991a96ef2eaa927bb6df3bfab2c78e46 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/channels/application_cable')
-rw-r--r-- | spec/channels/application_cable/connection_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/channels/application_cable/connection_spec.rb b/spec/channels/application_cable/connection_spec.rb index affde0095cf..c10e0c0cab4 100644 --- a/spec/channels/application_cable/connection_spec.rb +++ b/spec/channels/application_cable/connection_spec.rb @@ -3,11 +3,15 @@ require 'spec_helper' RSpec.describe ApplicationCable::Connection, :clean_gitlab_redis_sessions do - include SessionHelpers + let(:session_id) { Rack::Session::SessionId.new('6919a6f1bb119dd7396fadc38fd18d0d') } context 'when session cookie is set' do before do - stub_session(session_hash) + 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 end context 'when user is logged in' do |