Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- factory :user do
- full_name "Mr Test"
- email { "test@example.com" }
- password "secret"
- salt "asdasdastr4325234324sdfds"
- activation_state "active"
- after_build do |u|
- u.crypted_password = Sorcery::CryptoProviders::BCrypt.encrypt(u.password, u.salt)
- end
- end
Add Comment
Please, Sign In to add comment