Fix notification factory
This commit is contained in:
parent
49822a9af7
commit
189c223224
1 changed files with 1 additions and 2 deletions
|
|
@ -245,10 +245,9 @@ FactoryGirl.define do
|
||||||
association(:post, factory: :status_message)
|
association(:post, factory: :status_message)
|
||||||
end
|
end
|
||||||
|
|
||||||
factory(:notification) do
|
factory(:notification, class: Notifications::AlsoCommented) do
|
||||||
association :recipient, :factory => :user
|
association :recipient, :factory => :user
|
||||||
association :target, :factory => :comment
|
association :target, :factory => :comment
|
||||||
type 'Notifications::AlsoCommented'
|
|
||||||
|
|
||||||
after(:build) do |note|
|
after(:build) do |note|
|
||||||
note.actors << FactoryGirl.build(:person)
|
note.actors << FactoryGirl.build(:person)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue