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/controllers
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.
4 years ago
..
activitypub Add support for private pinned posts (#16954) 4 years ago
admin Refactor and improve tests (#17386) 4 years ago
api Refactor and improve tests (#17386) 4 years ago
auth Refactor and improve tests (#17386) 4 years ago
concerns Refactor and improve tests (#17386) 4 years ago
oauth Bump doorkeeper from 5.3.3 to 5.4.0 (#13733) 5 years ago
settings Refactor and improve tests (#17386) 4 years ago
well_known Remove Keybase integration (#17045) 4 years ago
about_controller_spec.rb Compensate for scrollbar disappearing when media modal visible (#8100) 7 years ago
account_follow_controller_spec.rb Add support for reversible suspensions through ActivityPub (#14989) 5 years ago
account_unfollow_controller_spec.rb Add support for reversible suspensions through ActivityPub (#14989) 5 years ago
accounts_controller_spec.rb Refactor and improve tests (#17386) 4 years ago
application_controller_spec.rb Refactor and improve tests (#17386) 4 years ago
authorize_interactions_controller_spec.rb Refactor and improve tests (#17386) 4 years ago
emojis_controller_spec.rb Misc. typos (#8694) 7 years ago
follower_accounts_controller_spec.rb Refactor and improve tests (#17386) 4 years ago
following_accounts_controller_spec.rb Refactor and improve tests (#17386) 4 years ago
home_controller_spec.rb Change routing paths to use usernames in web UI (#16171) 4 years ago
intents_controller_spec.rb Add remote interaction dialog for toots (#8202) 7 years ago
invites_controller_spec.rb Lint pass (#8876) 7 years ago
manifests_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
media_controller_spec.rb Fix error when rendering public pages with media attachments (#16763) 4 years ago
media_proxy_controller_spec.rb Fix media attachments enumeration (#14254) 5 years ago
relationships_controller_spec.rb Remove PubSubHubbub-related columns from accounts table (#16170) 4 years ago
remote_follow_controller_spec.rb Add support for reversible suspensions through ActivityPub (#14989) 5 years ago
remote_interaction_controller_spec.rb Add specs for RemoteInteractionController (#9524) 7 years ago
shares_controller_spec.rb Fix blurhash and autoplay not working on public pages (#11585) 6 years ago
statuses_cleanup_controller_spec.rb Add feature to automatically delete old toots (#16529) 4 years ago
statuses_controller_spec.rb Add support for reversible suspensions through ActivityPub (#14989) 5 years ago
tags_controller_spec.rb Redesign public hashtag page to use a masonry layout (#9822) 7 years ago