diff --git a/spec/controllers/notices_controller_spec.rb b/spec/controllers/notices_controller_spec.rb index 31820dd..893cdf5 100644 --- a/spec/controllers/notices_controller_spec.rb +++ b/spec/controllers/notices_controller_spec.rb @@ -51,7 +51,7 @@ describe NoticesController do response.body.should match(%r{]*>(.+)#{locate_path(@notice.id)}}) email = ActionMailer::Base.deliveries.last email.to.should include(@app.watchers.first.email) - email.subject.should include(@notice.message) + email.subject.should include(@notice.message.truncate(50)) email.subject.should include("[#{@app.name}]") email.subject.should include("[#{@notice.environment_name}]") end -- libgit2 0.21.2