Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe Notifications do
- # ...
- it "should send a rating invitation email" do
- @user = Factory.build(:user)
- mail = Notifications.create_rating_invite(@user)
- mail.to.should include(@user.email)
- mail.body.should match(/#{@user.to_param}/)
- end
- end
Add Comment
Please, Sign In to add comment