1 # -*- encoding: utf-8 -*-
14 @user = Factory( :user_yas)
15 }.should change(Author, :count)
17 it '作家とユーザがリンクされている' do
18 @user = Factory( :user_yas)
19 Author.find_by_user_id(@user.id).should_not eq nil
24 describe 'トークン作成に於いて' do
26 @user = Factory( :user_yas)
31 }.should change(@user, :authentication_token)
35 @user.authentication_token.should_not be_empty
39 describe 'トークン削除に於いて' do
41 @user = Factory( :user_yas)
47 }.should change(@user, :authentication_token)
51 @user.authentication_token.should be_blank