mastodon-glitch/spec/models
Emelia Smith 436419cc2f Merge pull request from GHSA-7w3c-p9j8-mq3x
* Ensure destruction of OAuth Applications notifies streaming

Due to doorkeeper using a dependent: delete_all relationship, the destroy of an OAuth Application bypassed the existing AccessTokenExtension callbacks for announcing destructing of access tokens.

* Ensure password resets revoke access to Streaming API

* Improve performance of deleting OAuth tokens

---------

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-02-14 15:25:15 +01:00
..
account Fix `RSpec/VerifiedDoubles` cop (#25469) 2023-06-22 14:55:22 +02:00
account_suggestions Move followable_by coverage to suggestions (#28697) 2024-01-12 09:11:34 +00:00
admin Use Sidekiq `fake!` instead of `inline!` in specs (#25369) 2024-01-10 11:06:58 +00:00
concerns Merge commit '7d9b209fe84b00eff348ea9d54905cbfffa79788' into glitch-soc/merge-upstream 2023-12-21 19:31:12 +01:00
form Add spec coverage for `models/form/custom_emoji_batch` class (#28388) 2023-12-18 12:41:37 +00:00
trends Update rubocop-rspec to version 2.22.0, fix `RSpec/IndexedLet` cop (#24698) 2023-06-14 16:44:37 +02:00
user_settings Fix minor typos in comments and spec names (#21831) 2023-05-19 17:13:29 +02:00
web Fix `RSpec/EmptyExampleGroup` cop (#24735) 2023-07-28 23:15:33 +02:00
account_conversation_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
account_domain_block_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
account_filter_spec.rb Autofix Rubocop RSpec/MatchArray (#24675) 2023-04-26 21:29:36 +02:00
account_migration_spec.rb Fix `RSpec/SubjectDeclaration` cop (#25312) 2023-07-12 09:49:33 +02:00
account_spec.rb Add `Account.matches_uri_prefix` scope and use in activitypub/followers_synchronizations controller (#28820) 2024-01-22 13:55:37 +00:00
account_statuses_cleanup_policy_spec.rb Reduce factory creation in `spec/models/account_statuses_cleanup_policy` (#28361) 2024-01-25 13:37:25 +00:00
account_warning_preset_spec.rb Models specs coverage (#23940) 2023-03-04 16:43:47 +01:00
announcement_spec.rb Announcement reactions query spec improvement and refactor (#28768) 2024-01-17 09:18:13 +00:00
appeal_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
block_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
canonical_email_block_spec.rb Clean up of `RSpec/LetSetup` within `spec/models` (#28444) 2023-12-21 09:18:38 +00:00
conversation_spec.rb Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
custom_emoji_category_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
custom_emoji_filter_spec.rb Update rubocop-rspec to version 2.22.0, fix `RSpec/IndexedLet` cop (#24698) 2023-06-14 16:44:37 +02:00
custom_emoji_spec.rb Use normalizes to prepare CustomEmoji `domain` value (#28624) 2024-01-08 11:20:59 +00:00
custom_filter_keyword_spec.rb Add `CustomFilterKeyword#to_regex` method (#28893) 2024-01-25 13:00:34 +00:00
custom_filter_spec.rb Add validation specs to `CustomFilter` model (#28600) 2024-01-05 15:13:59 +00:00
domain_allow_spec.rb Remove unused `matches_domain` scopes on Account, DomainAllow, DomainBlock (#28803) 2024-01-18 16:11:04 +00:00
domain_block_spec.rb Fix `Naming/VariableNumber` cop (#27447) 2023-10-18 14:26:22 +02:00
email_domain_block_spec.rb Fix RSpec/MissingExampleGroupArgument cop (#25310) 2023-06-06 15:51:42 +02:00
export_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
extended_description_spec.rb Models specs coverage (#23940) 2023-03-04 16:43:47 +01:00
favourite_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
follow_request_spec.rb Merge commit 'f476d9dab2f5cca6ae44b95961df6b6557d66dab' into glitch-soc/merge-upstream 2023-12-17 23:04:16 +01:00
follow_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
home_feed_spec.rb Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
identity_spec.rb Fix `RSpec/MessageSpies` cop (#27751) 2023-11-07 09:46:28 +00:00
import_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
instance_spec.rb Add specs for `Instance` model scopes and add `with_domain_follows` scope (#28767) 2024-01-25 15:28:27 +00:00
invite_spec.rb Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
ip_block_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
marker_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
media_attachment_spec.rb Fix `RSpec/MetadataStyle` cop in spec/ (#27729) 2023-11-06 14:28:20 +00:00
mention_spec.rb Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
notification_spec.rb Misc coverage improvements re: sidekiq/inline (#28651) 2024-01-09 09:40:08 +00:00
one_time_key_spec.rb Misc coverage improvements for validators (#23928) 2023-03-04 17:00:00 +01:00
poll_spec.rb Add spec for poll model (#23399) 2023-10-17 14:56:24 +02:00
poll_vote_spec.rb Fix RSpec/InferredSpecType cop (#24736) 2023-05-04 05:49:53 +02:00
preview_card_provider_spec.rb Models specs coverage (#23940) 2023-03-04 16:43:47 +01:00
preview_card_spec.rb Validate allowed schemes on preview card URLs (#27485) 2023-10-23 09:50:02 +02:00
privacy_policy_spec.rb Models specs coverage (#23940) 2023-03-04 16:43:47 +01:00
public_feed_spec.rb Merge commit 'b87bfb8c96c8491f1228e0258d05119f3420db05' into glitch-soc/merge-upstream 2023-12-18 18:34:25 +01:00
relationship_filter_spec.rb Fix crash when filtering for “dormant” relationships (#27306) 2023-10-06 12:58:16 +02:00
remote_follow_spec.rb Fix RSpec/ContextWording cop (#24739) 2023-05-04 05:49:08 +02:00
report_filter_spec.rb Update rubocop and rubocop-rspec (#26329) 2023-08-22 09:31:40 +02:00
report_spec.rb Remove `default_scope` from `Admin::ActionLog` (#28026) 2023-11-29 10:39:59 +00:00
rule_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
session_activation_spec.rb Fix `RSpec/MessageChain` cop (#27776) 2023-11-09 12:57:23 +00:00
setting_spec.rb Clean up `Setting` model and remove dead code (#28661) 2024-01-09 14:01:53 +00:00
site_upload_spec.rb Fix `RSpec/DescribedClass` cop (#25104) 2023-06-06 13:58:33 +02:00
software_update_spec.rb Add admin notifications for new Mastodon versions (#26582) 2023-09-01 17:47:07 +02:00
status_edit_spec.rb Pending example models minimal coverage (#23912) 2023-03-04 17:16:45 +01:00
status_pin_spec.rb Reduce `.times` usage in `StatusPin` and add `PIN_LIMIT` constant in validator (#27945) 2023-11-20 09:07:25 +00:00
status_spec.rb Merge branch 'main' into glitch-soc/merge-upstream 2023-12-28 16:57:10 +01:00
tag_feed_spec.rb Fix glitch-soc-only test being broken by refactor of the surrounding tests 2023-06-18 13:59:47 +02:00
tag_spec.rb Add coverage for `Tag.recently_used` scope (#28850) 2024-01-23 09:10:11 +00:00
user_role_spec.rb Fix `Lint/EmptyBlock` cop (#27748) 2023-11-07 09:11:04 +00:00
user_settings_spec.rb Fix user settings not getting validated (#25508) 2023-06-19 14:06:06 +01:00
user_spec.rb Merge pull request from GHSA-7w3c-p9j8-mq3x 2024-02-14 15:25:15 +01:00
webauthn_credentials_spec.rb Fix `Lint/UselessAssignment` cop (#27472) 2023-10-19 16:55:06 +02:00
webhook_spec.rb Use `normalizes` to prepare `Webhook#events` value (#27605) 2023-11-13 22:47:44 +00:00