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