[noosfero/noosfero][master] profile_suggestions: added test for link on email
Daniela Feitosa
gitlab at gitlab.com
Thu Apr 23 21:44:38 BRT 2015
Daniela Feitosa pushed to branch master at Noosfero / noosfero
Commits:
083d29d3 by Daniela Feitosa at 2015-04-23T21:34:29Z
profile_suggestions: added test for link on email
Forgot to include on commit 6bab07816a6524e570945e2bcf3d776300bb3828 :(
- - - - -
1 changed file:
- test/unit/user_mailer_test.rb
Changes:
=====================================
test/unit/user_mailer_test.rb
=====================================
--- 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)
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/083d29d3651b5b90ca598978b8dee7a5f3a05b41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150424/862076ce/attachment.html>
More information about the Noosfero-dev
mailing list