From e9ff79af082f90e44101e70170632c0816d724a1 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 9 Jan 2015 11:46:38 -0300 Subject: [PATCH] Test image path for person notifier email --- test/unit/person_notifier_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/test/unit/person_notifier_test.rb b/test/unit/person_notifier_test.rb index 98c012b..ba593be 100644 --- a/test/unit/person_notifier_test.rb +++ b/test/unit/person_notifier_test.rb @@ -237,6 +237,15 @@ class PersonNotifierTest < ActiveSupport::TestCase assert jobs.select {|j| !j.failed? && j.last_error.nil? }.empty? end + should 'render image tags for both internal and external src' do + @community.add_member(@member) + process_delayed_job_queue + notify + sent = ActionMailer::Base.deliveries.last + assert_match /src="\/\/www.gravatar.com\/avatar.*"/, sent.body.to_s + assert_match /src="http:\/\/colivre.net\/images\/icons-app\/community-icon.png.*"/, sent.body.to_s + end + private def notify -- libgit2 0.21.2