mailer_spec.rb
408 Bytes
require 'spec_helper'
describe Mailer do
context "Err Notification" do
include EmailSpec::Helpers
include EmailSpec::Matchers
it "should not html-escape the notice's message" do
@notice = Factory(:notice, :message => "class < ActionController::Base")
@email = Mailer.err_notification(@notice)
@email.should have_body_text("class < ActionController::Base")
end
end
end