From 0b13c293bd3efef3e72d8130ad2cbebae526e624 Mon Sep 17 00:00:00 2001 From: Marcos Ronaldo Date: Mon, 9 May 2016 10:02:00 -0300 Subject: [PATCH] Fix addMember task creation for push_notification plugin --- plugins/push_notification/test/helpers/observers_test_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/push_notification/test/helpers/observers_test_helper.rb b/plugins/push_notification/test/helpers/observers_test_helper.rb index b1749ff..2fd5ce2 100644 --- 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 -- libgit2 0.21.2