Extra spec on find_for_authentication
This commit is contained in:
parent
c09c060ebb
commit
c99796f5db
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue