Sha256: df9bee101a9be13c42950e3aafe4cc79d03627c5f513fd04e3704f4417c4f775

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

require 'spec_helper'

describe Authenticate::User 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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authenticate-0.1.0 spec/model/user_spec.rb