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)