Sha256: 7a8df663f6cfd6730b70d2e11edff62ea292d5a2c753edc51e57322bba241dc2
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true RSpec.describe Macros::Auth::ExpireSessionData do include Warden::Test::Mock subject(:step) { described_class.new } let(:ctx) { { warden: warden } } let(:session) { warden.session_serializer.session } before do warden.session_serializer.session[:lorem] = :ipsum warden.session_serializer.session['devise.lorem'] = :ipsum end it 'expects to clear devise related data from session' do step.call(ctx) expect(session[:lorem]).to eql :ipsum expect(session['devise.lorem']).to be nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ff-tbl-macros-2.0.2 | spec/lib/auth/expire_session_data_spec.rb |