Sha256: 9e281bb6cb431c8a85bd18a143831b4ea8a18816f9b4609d5f4a502927083140

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

FactoryGirl.define do
  factory :notification, :class => 'NotifyOn::Notification' do
    recipient { create(:user) }
    sender { create(:user) }
    trigger { create(:message) }
    trait :read do
      unread { false }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 spec/factories/notify_on_notifications.rb
notify_on-1.0.4 spec/factories/notify_on_notifications.rb
notify_on-1.0.3 spec/factories/notify_on_notifications.rb
notify_on-1.0.2 spec/factories/notify_on_notifications.rb
notify_on-1.0.1 spec/factories/notify_on_notifications.rb