From 3c4498380154564a02ee8b514c72089f2c3c9675 Mon Sep 17 00:00:00 2001 From: Gabriel Silva Date: Thu, 16 Jun 2016 14:14:28 +0000 Subject: [PATCH] Adds email template for new_follower notificaiton --- app/views/person_notifier/mailer/_new_follower.html.erb | 1 + test/unit/person_notifier_test.rb | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 app/views/person_notifier/mailer/_new_follower.html.erb diff --git a/app/views/person_notifier/mailer/_new_follower.html.erb b/app/views/person_notifier/mailer/_new_follower.html.erb new file mode 100644 index 0000000..ce1d787 --- /dev/null +++ b/app/views/person_notifier/mailer/_new_follower.html.erb @@ -0,0 +1 @@ +<%= render :partial => 'default_activity', :locals => { :activity => activity } %> diff --git a/test/unit/person_notifier_test.rb b/test/unit/person_notifier_test.rb index 0a37d1e..5bb9fee 100644 --- a/test/unit/person_notifier_test.rb +++ b/test/unit/person_notifier_test.rb @@ -178,6 +178,7 @@ class PersonNotifierTest < ActiveSupport::TestCase update_product: -> { create Product, profile: @profile, product_category: create(ProductCategory, environment: Environment.default) }, remove_product: -> { create Product, profile: @profile, product_category: create(ProductCategory, environment: Environment.default) }, favorite_enterprise: -> { create FavoriteEnterprisePerson, enterprise: create(Enterprise), person: @member }, + new_follower: -> { @member } } ActionTrackerConfig.verb_names.each do |verb| -- libgit2 0.21.2