Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 23rd, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Fabricator(:user, :class_name => "User") do
  2.   id { sequence }
  3.   username { "admin" }
  4.   password { "admin" }
  5.   display_name { "Admin Boom"}
  6.   admin { true }
  7.   email { "whatever@whatever.com" }
  8.   salt { "asdasdastr4325234324sdfds" }
  9.   crypted_password { Sorcery::CryptoProviders::BCrypt.encrypt("secret",
  10.                      "asdasdastr4325234324sdfds") }
  11. end