Created
November 21, 2013 10:49
-
-
Save andreaseriksson/7579624 to your computer and use it in GitHub Desktop.
rspec test mail attachments
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
mail.attachments.should have(1).attachment | |
attachment = mail.attachments[0] | |
attachment.should be_a_kind_of(Mail::Part) | |
attachment.content_type.should be_start_with('application/ics;') | |
attachment.filename.should == 'event.ics' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment