Sha256: 9d11e4a05f5257705578602671ba0b7e80fe5f699534d5cb553295622891423d
Contents?: true
Size: 592 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.3.1 | spec/model/user_spec.rb |
authenticate-0.3.0 | spec/model/user_spec.rb |