Sha256: 74a032f3bda3119ee1d10370402c03b79fc5a674d3af0d457df994c7ec89a75c

Contents?: true

Size: 315 Bytes

Versions: 10

Compression:

Stored size: 315 Bytes

Contents

FactoryGirl.define do
  factory :notification, class: Wupee::Notification do
    association :receiver, factory: :user, strategy: :create
    association :attached_object, factory: :message, strategy: :create
    notification_type { Wupee::NotificationType.find_or_create_by(name: 'notify_new_message') }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wupee-2.0.0.beta2 spec/factories/notification.rb
wupee-2.0.0.beta1 spec/factories/notification.rb
wupee-1.1.4 spec/factories/notification.rb
wupee-1.1.3 spec/factories/notification.rb
wupee-1.1.2 spec/factories/notification.rb
wupee-1.0.4 spec/factories/notification.rb
wupee-1.0.3 spec/factories/notification.rb
wupee-1.0.2 spec/factories/notification.rb
wupee-1.0.1 spec/factories/notification.rb
wupee-1.0.0 spec/factories/notification.rb