Commit 0b13c293bd3efef3e72d8130ad2cbebae526e624
1 parent
4d79eb7a
Exists in
ratings_minor_fixes
and in
4 other branches
Fix addMember task creation for push_notification plugin
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/push_notification/test/helpers/observers_test_helper.rb
... | ... | @@ -9,7 +9,8 @@ module ObserversTestHelper |
9 | 9 | end |
10 | 10 | |
11 | 11 | def create_add_member_task |
12 | - person = fast_create(Person) | |
12 | + user = fast_create(User) | |
13 | + person = fast_create(Person, :user_id => user.id) | |
13 | 14 | community = fast_create(Community) |
14 | 15 | return AddMember.create!(:requestor => person, :target => community) |
15 | 16 | end | ... | ... |