mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-09 12:56:14 +10:00
11 lines
256 B
Ruby
11 lines
256 B
Ruby
require 'spec_helper'
|
|
|
|
describe AuthKey do
|
|
|
|
it 'should create a auth token a target user' do
|
|
@user = User.create name: 'Mary', email: 'mary@qq.com', password: 'passworD1'
|
|
token = AuthKey.create_key_for @user
|
|
token.should_not be nil
|
|
end
|
|
end
|