This test RoR project.
To authenticate the User used the Devise gem.
Testing made by Rspec.
Locking User after 5 incorrect attempts.
Unlocking via mail or after 1 minutes (for testing purpose)
To send mail you should fill correct credentials in /config/environments/development.rb