diff --git a/app/mailers/mailer.rb b/app/mailers/mailer.rb index 1ea0dbb..6766575 100644 --- a/app/mailers/mailer.rb +++ b/app/mailers/mailer.rb @@ -10,7 +10,7 @@ class Mailer < ActionMailer::Base @app = notice.app mail :to => @app.notification_recipients, - :subject => "[#{@app.name}][#{@notice.environment_name}] #{@notice.message}" + :subject => "[#{@app.name}][#{@notice.environment_name}] #{@notice.message.truncate(50)}" end def deploy_notification(deploy) diff --git a/spec/mailers/mailer_spec.rb b/spec/mailers/mailer_spec.rb index f6cc4ad..fc0f87c 100644 --- a/spec/mailers/mailer_spec.rb +++ b/spec/mailers/mailer_spec.rb @@ -19,6 +19,13 @@ describe Mailer do it "should have inline css" do email.should have_body_text('