From 189c22322401ee559091433ab7325767a7400b43 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 25 Apr 2017 01:32:35 +0200 Subject: [PATCH] Fix notification factory --- spec/factories.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/factories.rb b/spec/factories.rb index e6ce43525..fadc1d172 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -245,10 +245,9 @@ FactoryGirl.define do association(:post, factory: :status_message) end - factory(:notification) do + factory(:notification, class: Notifications::AlsoCommented) do association :recipient, :factory => :user association :target, :factory => :comment - type 'Notifications::AlsoCommented' after(:build) do |note| note.actors << FactoryGirl.build(:person)