Skip to content
Extraits de code Groupes Projets
Valider c99796f5 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Extra spec on find_for_authentication

parent c09c060e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -255,6 +255,11 @@ describe User do ...@@ -255,6 +255,11 @@ describe User do
it "does not preserve case" do it "does not preserve case" do
User.find_for_authentication(:username => user.username.upcase).should == user User.find_for_authentication(:username => user.username.upcase).should == user
end end
it 'errors out when passed a non-hash' do
lambda {
User.find_for_authentication(user.username)
}.should raise_error
end
end end
context 'profiles' do context 'profiles' do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter