<commit_before>require_relative '../spec_helper'

describe OktaUser do
  describe '.retrieve_from_cookie' do
    context 'when remember_token parameter blank' do
      it 'returns nil' do
        expect(OktaUser.retrieve_from_cookie('')).to be_nil
      end
    end
  end
end

<commit_msg>[TS] [000000] Test for nil cookie token parameter, which is what the value will be on cookie expiration<commit_after>require_relative '../spec_helper'

describe OktaUser do
  describe '.retrieve_from_cookie' do
    context 'when remember_token parameter blank' do
      it 'returns nil' do
        expect(OktaUser.retrieve_from_cookie('')).to be_nil
      end
    end

    context 'when remember_token parameter nil' do
      it 'returns nil' do
        expect(OktaUser.retrieve_from_cookie(nil)).to be_nil
      end
    end
  end
end


{'fraction_non_alphanumeric': 0.07393939393939394, 'fraction_numerical': 0.007272727272727273, 'mean_word_length': 3.324607329842932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7222942', 'n_tokens_mistral': 255, 'n_tokens_neox': 245, 'n_words': 79}