From 1d9c303704cb0aa1c47703391601713629f70a06 Mon Sep 17 00:00:00 2001 From: Marcello Barnaba Date: Tue, 24 May 2011 00:04:09 +0200 Subject: [PATCH] Add minimal documentation --- lib/shoulda/matchers/action_mailer/have_sent_email.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/shoulda/matchers/action_mailer/have_sent_email.rb b/lib/shoulda/matchers/action_mailer/have_sent_email.rb index 436ab81e..102ecdcb 100644 --- a/lib/shoulda/matchers/action_mailer/have_sent_email.rb +++ b/lib/shoulda/matchers/action_mailer/have_sent_email.rb @@ -8,6 +8,7 @@ module Shoulda # :nodoc: # it { should have_sent_email.from('do-not-reply@example.com') } # it { should have_sent_email.with_body(/is spam\./) } # it { should have_sent_email.to('myself@me.com') } + # it { should have_sent_email.with_part('text/html', /HTML spam/) } # it { should have_sent_email.with_subject(/spam/). # from('do-not-reply@example.com'). # with_body(/spam/).