Extra spec on find_for_authentication

This commit is contained in:
Raphael 2010-12-04 23:15:22 -08:00
parent c09c060ebb
commit c99796f5db

View file

@ -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