Guest User

Untitled

a guest
May 24th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # TODO - THE LAMBDA NEEDED TO AVOID USER MONITORING CRAP seems to break assertions?
  2.  
  3. lambda {
  4. User.without_monitoring do
  5. Moderation::Blocked::Email.add('kali.donovan@gmail.com')
  6. @user = User.new({
  7. :email => 'kali.donovan+123@gmail.com',
  8. :password => 'pa33word', :password_confirmation => 'pa33word',
  9. :login => 'just-a-dumb-test'
  10. })
  11. @user.errors.full_messages.at_least_one_should {|m| m == 'asdf'}
  12. # Sorry, this email has been blocked from the Kroogi Network
  13. end
  14. }
Add Comment
Please, Sign In to add comment