Commit 334265245e10894120f483ca7574474fd60dd01d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'fix_person_notifier' into stable
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 | ... | ... |