Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe User, ".find_for_database_authentication" do
- context "logging in with email" do
- subject { User.find_for_database_authentication({:email => admin.email}) }
- it {should == admin }
- end
- context "logging in with username" do
- subject { User.find_for_database_authentication({:email => admin.username}) }
- it {should == admin }
- end
- end
Add Comment
Please, Sign In to add comment