-
-
Save releu/2500453 to your computer and use it in GitHub Desktop.
Testing email delivery in Rails 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should send confirmation email' do | |
review = build(:review) | |
mailer = mock; mailer.should_receive(:deliver) | |
ReviewMailer.should_receive(:confirmation).with(review).and_return(mailer) | |
review.save | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment