Module: AbstractNotifier::Testing::NotificationDelivery
- Included in:
- NotificationDelivery
- Defined in:
- lib/abstract_notifier/testing.rb
Instance Method Summary collapse
Instance Method Details
#notify_later ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/abstract_notifier/testing.rb', line 39 def notify_later(**) return super unless AbstractNotifier.test? payload = notification.payload Driver.enqueue_notification payload.merge(via: notifier.class, **) end |
#notify_now ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/abstract_notifier/testing.rb', line 31 def notify_now return super unless AbstractNotifier.test? payload = notification.payload Driver.send_notification payload.merge(via: notifier.class) end |