Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # TODO - THE LAMBDA NEEDED TO AVOID USER MONITORING CRAP seems to break assertions?
- lambda {
- User.without_monitoring do
- Moderation::Blocked::Email.add('kali.donovan@gmail.com')
- @user = User.new({
- :email => 'kali.donovan+123@gmail.com',
- :password => 'pa33word', :password_confirmation => 'pa33word',
- :login => 'just-a-dumb-test'
- })
- @user.errors.full_messages.at_least_one_should {|m| m == 'asdf'}
- # Sorry, this email has been blocked from the Kroogi Network
- end
- }
Add Comment
Please, Sign In to add comment