Commit Graph

9 Commits (38c3530cd72c11c0e909bb183cfe56b3f961776c)

Author SHA1 Message Date
Matt Jankowski 61ee553176 Use correct naming on controller concern specs () 2023-07-27 14:27:21 +02:00
Matt Jankowski cf86cc68b7 Fix RSpec/InferredSpecType cop () 2023-05-04 05:49:53 +02:00
Claire 8919f6cf63 Change public profile pages to be disabled for unconfirmed users ()
Fixes 

Note that unconfirmed and unapproved accounts can still be searched for
and their (empty) account retrieved using the REST API.
2022-01-28 14:24:37 +01:00
Claire 1f07ab014d Refactor and improve tests ()
* 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.
2022-01-28 00:46:42 +01:00
Eugen Rochko 56f0203c66 Refactor controllers for statuses, accounts, and more () 2019-07-08 12:03:45 +02:00
Eugen Rochko 73fb7bfa0f Admission-based registrations mode ()
Fix 
Fix 
2019-03-14 05:28:30 +01:00
Yamagishi Kazutoshi 7da649efb4 Use raw status code on have_http_status () 2018-04-21 21:35:07 +02:00
Eugen Rochko 34962d9f9d Add alternate links to ActivityPub resources from HTML/HEAD variants () 2017-08-13 00:45:04 +02:00
Akihiko Odaki a111604729 Spec AccountControllerConcern () 2017-05-29 18:12:54 +02:00