docbrown/spec
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
..
black_box Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
decorators Switch decorators to Rails builtin decorations - take 2 (#6125) [deploy] 2020-02-19 15:30:53 -05:00
factories Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
fixtures Allow an article's main_image to be removed (#5687) [deploy] 2020-03-10 08:29:59 -07:00
helpers Introduce app_url helper (#6715) 2020-03-19 15:03:26 +01:00
initializers Refactor Elasticsearch client access (#6307) [deploy] 2020-02-28 11:38:37 -05:00
labor Remove Shipping Fields from Users (#6477) [deploy] 2020-03-05 13:41:09 -05:00
lib Search Users for Chat Channels Frontend (#6626) 2020-03-13 10:26:32 -04:00
liquid_tags Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
mailers Add a form to email users from internal (#6668) 2020-03-17 11:19:42 -04:00
models Move dev/mascot account to class methods (#6694) 2020-03-18 14:42:40 +01:00
policies Remove leftover Stripe subscriptions code (#6243) 2020-02-24 08:33:36 -05:00
requests Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
routing Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
serializers/search store flare tag as a hash in Elasticsearch and add spec for putting json into ES (#6538) 2020-03-09 12:06:31 -04:00
services Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
support Fix VCR warnings and use initializers (#6672) 2020-03-17 15:51:07 +01:00
system Allow communities to dictate authentication providers (#6639) [deploy] 2020-03-18 16:41:39 -04:00
uploaders Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
views Improve test speed (#3957) [ci skip] 2019-09-12 16:17:20 -04:00
workers Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
rails_helper.rb Replace observers with callbacks and remove rails-observers (#6675) 2020-03-18 09:58:36 +01:00
spec_helper.rb Temporarily comment out random (#2486) 2019-04-18 11:56:38 -04:00