Commit 083d29d3651b5b90ca598978b8dee7a5f3a05b41

Authored by Daniela Feitosa
1 parent 6bab0781

profile_suggestions: added test for link on email

Forgot to include on commit 6bab07816a6524e570945e2bcf3d776300bb3828 :(
Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
test/unit/user_mailer_test.rb
... ... @@ -18,6 +18,14 @@ class UserMailerTest < ActiveSupport::TestCase
18 18 end
19 19 end
20 20  
  21 + should 'deliver profiles suggestions email' do
  22 + person = create_user('some-user').person
  23 + ProfileSuggestion.create!(:person => person, :suggestion =>
  24 +fast_create(Person))
  25 + email = UserMailer.profiles_suggestions_email(person).deliver
  26 + assert_match /profile\/some-user\/friends\/suggest/, email.body.to_s
  27 + end
  28 +
21 29 private
22 30  
23 31 def read_fixture(action)
... ...