Commit e9ff79af082f90e44101e70170632c0816d724a1

Authored by Victor Costa
1 parent dde55d70

Test image path for person notifier email

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
test/unit/person_notifier_test.rb
... ... @@ -237,6 +237,15 @@ class PersonNotifierTest < ActiveSupport::TestCase
237 237 assert jobs.select {|j| !j.failed? && j.last_error.nil? }.empty?
238 238 end
239 239  
  240 + should 'render image tags for both internal and external src' do
  241 + @community.add_member(@member)
  242 + process_delayed_job_queue
  243 + notify
  244 + sent = ActionMailer::Base.deliveries.last
  245 + assert_match /src="\/\/www.gravatar.com\/avatar.*"/, sent.body.to_s
  246 + assert_match /src="http:\/\/colivre.net\/images\/icons-app\/community-icon.png.*"/, sent.body.to_s
  247 + end
  248 +
240 249 private
241 250  
242 251 def notify
... ...