You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/workers
Claire e38fc319dc
Refactor and improve tests (#17386)
* Change account and user fabricators to simplify and improve tests

- `Fabricate(:account)` implicitly fabricates an associated `user` if
  no `domain` attribute is given (an account with `domain: nil` is
  considered a local account, but no user record was created), unless
  `user: nil` is passed
- `Fabricate(:account, user: Fabricate(:user))` should still be possible
  but is discouraged.

* Fix and refactor tests

- avoid passing unneeded attributes to `Fabricate(:user)` or
  `Fabricate(:account)`
- avoid embedding `Fabricate(:user)` into a `Fabricate(:account)` or the other
  way around
- prefer `Fabricate(:user, account_attributes: …)` to
  `Fabricate(:user, account: Fabricate(:account, …)`
- also, some tests were using remote accounts with local user records, which is
  not representative of production code.
3 years ago
..
activitypub Add support for editing for published statuses (#16697) 3 years ago
admin Add ability to purge undeliverable domains from admin interface (#16686) 3 years ago
scheduler Add feature to automatically delete old toots (#16529) 4 years ago
web Change Web Push API deliveries to use request pooling (#16014) 4 years ago
digest_mailer_worker_spec.rb
domain_block_worker_spec.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
domain_clear_media_worker_spec.rb Make domain block/silence/reject-media code more robust (#13424) 5 years ago
feed_insert_worker_spec.rb Add support for editing for published statuses (#16697) 3 years ago
move_worker_spec.rb Refactor and improve tests (#17386) 3 years ago
publish_scheduled_announcement_worker_spec.rb Fix handling announcements with links (#16941) 3 years ago
publish_scheduled_status_worker_spec.rb Add scheduled statuses (#9706) 6 years ago
refollow_worker_spec.rb Fix being able to import more than allowed number of follows (#15384) 4 years ago
regeneration_worker_spec.rb
unfollow_follow_worker_spec.rb Refactor and improve tests (#17386) 3 years ago