Skip to content

Commit

Permalink
Added one more spec. [#1 status:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bleigh committed Mar 21, 2009
1 parent 8e457c5 commit af84f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/models/twitter_auth/generic_user_spec.rb
Expand Up @@ -133,5 +133,10 @@
user2 = Factory(:twitter_oauth_user, :login => 'walker', :remember_token => 'ghijkl', :remember_token_expires_at => (Time.now - 10.days))
User.from_remember_token('ghijkl').should be_nil
end

it 'should not find a user with a nil token and an expiration' do
user = Factory(:twitter_oauth_user, :login => 'stranger', :remember_token => nil, :remember_token_expires_at => (Time.now + 10.days))
User.from_remember_token(nil).should be_nil
end
end
end

0 comments on commit af84f63

Please sign in to comment.