Sha256: 63005a5f9522c1f9a5fe75d8a6dae76a1c9b3fd558eac5895b210af0fdd6f0a6
Contents?: true
Size: 592 Bytes
Versions: 4
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' describe Authenticate::User do context 'session tokens' do it 'generates a new session token' do user = create(:user, :with_session_token) old_token = user.session_token user.generate_session_token expect(user.session_token).to_not eq old_token end it 'saves user when reset_session_token! called' do user = create(:user, :with_session_token) old_token = user.session_token user.reset_session_token! new_user = User.find(user.id) expect(new_user.session_token).to_not eq old_token end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.2.3 | spec/model/user_spec.rb |
authenticate-0.2.2 | spec/model/user_spec.rb |
authenticate-0.2.1 | spec/model/user_spec.rb |
authenticate-0.2.0 | spec/model/user_spec.rb |