From 4757d788e80962aa90deb7771befef8acfeb7e84 Mon Sep 17 00:00:00 2001 From: Shuky Dvir Date: Fri, 11 Jan 2013 10:27:58 +0200 Subject: [PATCH] fixing the test of truncating the subject in the notice email --- spec/controllers/notices_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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