Guest User

Untitled

a guest
Feb 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. describe Notifications do
  2. # ...
  3.  
  4. it "should send a rating invitation email" do
  5. @user = Factory.build(:user)
  6. mail = Notifications.create_rating_invite(@user)
  7. mail.to.should include(@user.email)
  8. mail.body.should match(/#{@user.to_param}/)
  9. end
  10. end
Add Comment
Please, Sign In to add comment