[Git][noosfero/noosfero][master] Fix addMember task creation for push_notification plugin
Marcos Ronaldo Pereira Junior
gitlab at mg.gitlab.com
Mon May 9 10:02:46 BRT 2016
Marcos Ronaldo Pereira Junior pushed to branch master at Noosfero / noosfero
Commits:
0b13c293 by Marcos Ronaldo at 2016-05-09T10:02:00-03:00
Fix addMember task creation for push_notification plugin
- - - - -
1 changed file:
- plugins/push_notification/test/helpers/observers_test_helper.rb
Changes:
=====================================
plugins/push_notification/test/helpers/observers_test_helper.rb
=====================================
--- a/plugins/push_notification/test/helpers/observers_test_helper.rb
+++ b/plugins/push_notification/test/helpers/observers_test_helper.rb
@@ -9,7 +9,8 @@ module ObserversTestHelper
end
def create_add_member_task
- person = fast_create(Person)
+ user = fast_create(User)
+ person = fast_create(Person, :user_id => user.id)
community = fast_create(Community)
return AddMember.create!(:requestor => person, :target => community)
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/0b13c293bd3efef3e72d8130ad2cbebae526e624
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160509/887cbab3/attachment-0001.html>
More information about the Noosfero-dev
mailing list