From 083d29d3651b5b90ca598978b8dee7a5f3a05b41 Mon Sep 17 00:00:00 2001 From: Daniela Feitosa Date: Thu, 23 Apr 2015 21:34:29 -0300 Subject: [PATCH] profile_suggestions: added test for link on email --- test/unit/user_mailer_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/test/unit/user_mailer_test.rb b/test/unit/user_mailer_test.rb index eca5a52..b119336 100644 --- a/test/unit/user_mailer_test.rb +++ b/test/unit/user_mailer_test.rb @@ -18,6 +18,14 @@ class UserMailerTest < ActiveSupport::TestCase end end + should 'deliver profiles suggestions email' do + person = create_user('some-user').person + ProfileSuggestion.create!(:person => person, :suggestion => +fast_create(Person)) + email = UserMailer.profiles_suggestions_email(person).deliver + assert_match /profile\/some-user\/friends\/suggest/, email.body.to_s + end + private def read_fixture(action) -- libgit2 0.21.2