docbrown/spec/services/notifications
Julianna Tetreault e8183189a7
Add welcome thread welcome notification (#6221) [deploy]
* Add Welcome Thread Broadcast to generator.rb

* Add welcome trait to broadcasts.rb

* Add additional tests around welcome_broadcasts:
- ensure that the correct Broadcast is sent
- ensure that a User only receives a single Notification
- ensure that only certain Users receieve the Notification

* Refactor and remove unncessary code from generator.rb and generator_spec.rb

* Refactor generator_spec and eagerly load welcome_thread_comment to get spec passing

* Initialize user in place of receiver_id in generator.rb

* Add before action to make generator_spec more readable

* Add latest_published_thread method to generator.rb

  * Update generator.rb to be reusable with latest_published_thread
  * Update generator_spec to use welcome tags for Article obj
  * Create mascot_account using let to reduce User creation in spec

* Adjust expectation for a User who should not receive a notification
2020-03-19 18:57:32 +01:00
..
milestone Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
moderation Skip moderation notification if the user is the moderator (#6200) 2020-02-20 14:09:43 -05:00
new_badge_achievement Add a default message to badge award action (#5160) 2019-12-19 10:38:57 -05:00
new_comment Remove notifiable access from articles and comments notifications (#5415) [deploy] 2020-01-09 10:19:45 -05:00
new_follower Create new NewFollowerWorker and start sending jobs to it (#5556) [deploy] 2020-01-17 15:08:50 -05:00
new_mention Fix mention notification to mention proper user (#3721) 2019-08-14 14:43:21 -04:00
notifiable_action Specify on_duplicate_key_update when creating notifications to avoid constraint violation (#4993) [deploy] 2019-12-03 16:24:46 -05:00
reactions Make unsure specs more confident about time (#3518) 2019-07-23 09:36:47 -04:00
tag_adjustment_notification Move Notifications::TagAdjustmentNotificationJob to Sidekiq (#5909) [deploy] 2020-02-05 09:52:21 -08:00
welcome_notification Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
remove_all_by_action_spec.rb Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
remove_all_spec.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
update_spec.rb Optimize Notifications::Update and it specs (#5417) 2020-01-20 16:55:50 -05:00