From ff659b9d36ba7b72d330735b10f1726e8608e0e3 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 13 Sep 2011 06:25:23 +0800 Subject: [PATCH] Inline CSS is now an ActionMailer interceptor, which I'm not sure how to test. Mailer class is loaded too early in spec run, and so the InlineCSSHelpers aren't included on ActionMailer::Base at that time. --- spec/mailers/mailer_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/mailers/mailer_spec.rb b/spec/mailers/mailer_spec.rb index 8777ea3..d435da0 100644 --- a/spec/mailers/mailer_spec.rb +++ b/spec/mailers/mailer_spec.rb @@ -4,6 +4,7 @@ describe Mailer do context "Err Notification" do include EmailSpec::Helpers include EmailSpec::Matchers + Mailer.send :helper, ActionMailer::InlineCssHelper before do @notice = Factory(:notice, :message => "class < ActionController::Base") @@ -13,11 +14,6 @@ describe Mailer do it "should html-escape the notice's message for the html part" do @email.should have_body_text("class < ActionController::Base") end - - it "should inline css" do - @email.should have_body_text '