diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e340cb5e8a8..1d493a24d8e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -648,181 +648,6 @@ RSpec/PredicateMatcher: - 'spec/models/user_spec.rb' - 'spec/services/post_status_service_spec.rb' -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: Inferences. -RSpec/Rails/InferredSpecType: - Exclude: - - 'spec/controllers/about_controller_spec.rb' - - 'spec/controllers/accounts_controller_spec.rb' - - 'spec/controllers/activitypub/collections_controller_spec.rb' - - 'spec/controllers/activitypub/followers_synchronizations_controller_spec.rb' - - 'spec/controllers/activitypub/inboxes_controller_spec.rb' - - 'spec/controllers/activitypub/outboxes_controller_spec.rb' - - 'spec/controllers/activitypub/replies_controller_spec.rb' - - 'spec/controllers/admin/account_moderation_notes_controller_spec.rb' - - 'spec/controllers/admin/accounts_controller_spec.rb' - - 'spec/controllers/admin/action_logs_controller_spec.rb' - - 'spec/controllers/admin/base_controller_spec.rb' - - 'spec/controllers/admin/change_emails_controller_spec.rb' - - 'spec/controllers/admin/confirmations_controller_spec.rb' - - 'spec/controllers/admin/dashboard_controller_spec.rb' - - 'spec/controllers/admin/disputes/appeals_controller_spec.rb' - - 'spec/controllers/admin/domain_allows_controller_spec.rb' - - 'spec/controllers/admin/domain_blocks_controller_spec.rb' - - 'spec/controllers/admin/email_domain_blocks_controller_spec.rb' - - 'spec/controllers/admin/export_domain_allows_controller_spec.rb' - - 'spec/controllers/admin/export_domain_blocks_controller_spec.rb' - - 'spec/controllers/admin/instances_controller_spec.rb' - - 'spec/controllers/admin/settings/branding_controller_spec.rb' - - 'spec/controllers/admin/tags_controller_spec.rb' - - 'spec/controllers/api/oembed_controller_spec.rb' - - 'spec/controllers/api/v1/accounts/pins_controller_spec.rb' - - 'spec/controllers/api/v1/accounts/search_controller_spec.rb' - - 'spec/controllers/api/v1/accounts_controller_spec.rb' - - 'spec/controllers/api/v1/admin/account_actions_controller_spec.rb' - - 'spec/controllers/api/v1/admin/accounts_controller_spec.rb' - - 'spec/controllers/api/v1/admin/domain_allows_controller_spec.rb' - - 'spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb' - - 'spec/controllers/api/v1/admin/reports_controller_spec.rb' - - 'spec/controllers/api/v1/announcements/reactions_controller_spec.rb' - - 'spec/controllers/api/v1/announcements_controller_spec.rb' - - 'spec/controllers/api/v1/apps_controller_spec.rb' - - 'spec/controllers/api/v1/blocks_controller_spec.rb' - - 'spec/controllers/api/v1/bookmarks_controller_spec.rb' - - 'spec/controllers/api/v1/conversations_controller_spec.rb' - - 'spec/controllers/api/v1/custom_emojis_controller_spec.rb' - - 'spec/controllers/api/v1/domain_blocks_controller_spec.rb' - - 'spec/controllers/api/v1/emails/confirmations_controller_spec.rb' - - 'spec/controllers/api/v1/endorsements_controller_spec.rb' - - 'spec/controllers/api/v1/favourites_controller_spec.rb' - - 'spec/controllers/api/v1/filters_controller_spec.rb' - - 'spec/controllers/api/v1/follow_requests_controller_spec.rb' - - 'spec/controllers/api/v1/followed_tags_controller_spec.rb' - - 'spec/controllers/api/v1/instances/activity_controller_spec.rb' - - 'spec/controllers/api/v1/instances/peers_controller_spec.rb' - - 'spec/controllers/api/v1/instances_controller_spec.rb' - - 'spec/controllers/api/v1/lists_controller_spec.rb' - - 'spec/controllers/api/v1/markers_controller_spec.rb' - - 'spec/controllers/api/v1/media_controller_spec.rb' - - 'spec/controllers/api/v1/mutes_controller_spec.rb' - - 'spec/controllers/api/v1/notifications_controller_spec.rb' - - 'spec/controllers/api/v1/polls/votes_controller_spec.rb' - - 'spec/controllers/api/v1/polls_controller_spec.rb' - - 'spec/controllers/api/v1/reports_controller_spec.rb' - - 'spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb' - - 'spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb' - - 'spec/controllers/api/v1/statuses_controller_spec.rb' - - 'spec/controllers/api/v1/suggestions_controller_spec.rb' - - 'spec/controllers/api/v1/tags_controller_spec.rb' - - 'spec/controllers/api/v1/trends/tags_controller_spec.rb' - - 'spec/controllers/api/v2/admin/accounts_controller_spec.rb' - - 'spec/controllers/api/v2/filters/keywords_controller_spec.rb' - - 'spec/controllers/api/v2/filters/statuses_controller_spec.rb' - - 'spec/controllers/api/v2/filters_controller_spec.rb' - - 'spec/controllers/api/v2/search_controller_spec.rb' - - 'spec/controllers/application_controller_spec.rb' - - 'spec/controllers/auth/challenges_controller_spec.rb' - - 'spec/controllers/auth/confirmations_controller_spec.rb' - - 'spec/controllers/auth/passwords_controller_spec.rb' - - 'spec/controllers/auth/registrations_controller_spec.rb' - - 'spec/controllers/auth/sessions_controller_spec.rb' - - 'spec/controllers/concerns/account_controller_concern_spec.rb' - - 'spec/controllers/concerns/cache_concern_spec.rb' - - 'spec/controllers/concerns/challengable_concern_spec.rb' - - 'spec/controllers/concerns/export_controller_concern_spec.rb' - - 'spec/controllers/concerns/localized_spec.rb' - - 'spec/controllers/concerns/signature_verification_spec.rb' - - 'spec/controllers/concerns/user_tracking_concern_spec.rb' - - 'spec/controllers/disputes/appeals_controller_spec.rb' - - 'spec/controllers/disputes/strikes_controller_spec.rb' - - 'spec/controllers/home_controller_spec.rb' - - 'spec/controllers/instance_actors_controller_spec.rb' - - 'spec/controllers/intents_controller_spec.rb' - - 'spec/controllers/oauth/authorizations_controller_spec.rb' - - 'spec/controllers/oauth/tokens_controller_spec.rb' - - 'spec/controllers/settings/imports_controller_spec.rb' - - 'spec/controllers/settings/profiles_controller_spec.rb' - - 'spec/controllers/statuses_cleanup_controller_spec.rb' - - 'spec/controllers/tags_controller_spec.rb' - - 'spec/controllers/well_known/host_meta_controller_spec.rb' - - 'spec/controllers/well_known/nodeinfo_controller_spec.rb' - - 'spec/controllers/well_known/webfinger_controller_spec.rb' - - 'spec/helpers/accounts_helper_spec.rb' - - 'spec/helpers/admin/account_moderation_notes_helper_spec.rb' - - 'spec/helpers/admin/action_logs_helper_spec.rb' - - 'spec/helpers/flashes_helper_spec.rb' - - 'spec/helpers/formatting_helper_spec.rb' - - 'spec/helpers/home_helper_spec.rb' - - 'spec/helpers/routing_helper_spec.rb' - - 'spec/mailers/admin_mailer_spec.rb' - - 'spec/mailers/notification_mailer_spec.rb' - - 'spec/mailers/user_mailer_spec.rb' - - 'spec/models/account/field_spec.rb' - - 'spec/models/account_alias_spec.rb' - - 'spec/models/account_conversation_spec.rb' - - 'spec/models/account_deletion_request_spec.rb' - - 'spec/models/account_domain_block_spec.rb' - - 'spec/models/account_migration_spec.rb' - - 'spec/models/account_moderation_note_spec.rb' - - 'spec/models/account_spec.rb' - - 'spec/models/account_statuses_cleanup_policy_spec.rb' - - 'spec/models/admin/account_action_spec.rb' - - 'spec/models/admin/action_log_spec.rb' - - 'spec/models/announcement_mute_spec.rb' - - 'spec/models/announcement_reaction_spec.rb' - - 'spec/models/announcement_spec.rb' - - 'spec/models/backup_spec.rb' - - 'spec/models/block_spec.rb' - - 'spec/models/canonical_email_block_spec.rb' - - 'spec/models/conversation_mute_spec.rb' - - 'spec/models/conversation_spec.rb' - - 'spec/models/custom_emoji_spec.rb' - - 'spec/models/custom_filter_keyword_spec.rb' - - 'spec/models/custom_filter_spec.rb' - - 'spec/models/device_spec.rb' - - 'spec/models/domain_block_spec.rb' - - 'spec/models/email_domain_block_spec.rb' - - 'spec/models/encrypted_message_spec.rb' - - 'spec/models/favourite_spec.rb' - - 'spec/models/featured_tag_spec.rb' - - 'spec/models/follow_recommendation_suppression_spec.rb' - - 'spec/models/follow_request_spec.rb' - - 'spec/models/follow_spec.rb' - - 'spec/models/home_feed_spec.rb' - - 'spec/models/identity_spec.rb' - - 'spec/models/import_spec.rb' - - 'spec/models/invite_spec.rb' - - 'spec/models/list_account_spec.rb' - - 'spec/models/list_spec.rb' - - 'spec/models/login_activity_spec.rb' - - 'spec/models/media_attachment_spec.rb' - - 'spec/models/mention_spec.rb' - - 'spec/models/mute_spec.rb' - - 'spec/models/notification_spec.rb' - - 'spec/models/poll_vote_spec.rb' - - 'spec/models/preview_card_spec.rb' - - 'spec/models/preview_card_trend_spec.rb' - - 'spec/models/public_feed_spec.rb' - - 'spec/models/relay_spec.rb' - - 'spec/models/scheduled_status_spec.rb' - - 'spec/models/session_activation_spec.rb' - - 'spec/models/setting_spec.rb' - - 'spec/models/site_upload_spec.rb' - - 'spec/models/status_pin_spec.rb' - - 'spec/models/status_spec.rb' - - 'spec/models/status_stat_spec.rb' - - 'spec/models/status_trend_spec.rb' - - 'spec/models/system_key_spec.rb' - - 'spec/models/tag_follow_spec.rb' - - 'spec/models/unavailable_domain_spec.rb' - - 'spec/models/user_invite_request_spec.rb' - - 'spec/models/user_role_spec.rb' - - 'spec/models/user_spec.rb' - - 'spec/models/web/push_subscription_spec.rb' - - 'spec/models/web/setting_spec.rb' - - 'spec/models/webauthn_credentials_spec.rb' - - 'spec/models/webhook_spec.rb' - RSpec/RepeatedExample: Exclude: - 'spec/policies/status_policy_spec.rb' diff --git a/spec/controllers/about_controller_spec.rb b/spec/controllers/about_controller_spec.rb index ccd28a96ce8..8db6d80b0b1 100644 --- a/spec/controllers/about_controller_spec.rb +++ b/spec/controllers/about_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AboutController, type: :controller do +RSpec.describe AboutController do render_views describe 'GET #show' do diff --git a/spec/controllers/accounts_controller_spec.rb b/spec/controllers/accounts_controller_spec.rb index 428dc2cba5b..36675648026 100644 --- a/spec/controllers/accounts_controller_spec.rb +++ b/spec/controllers/accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountsController, type: :controller do +RSpec.describe AccountsController do render_views let(:account) { Fabricate(:account) } diff --git a/spec/controllers/activitypub/collections_controller_spec.rb b/spec/controllers/activitypub/collections_controller_spec.rb index 02d00657348..8878474885a 100644 --- a/spec/controllers/activitypub/collections_controller_spec.rb +++ b/spec/controllers/activitypub/collections_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ActivityPub::CollectionsController, type: :controller do +RSpec.describe ActivityPub::CollectionsController do let!(:account) { Fabricate(:account) } let!(:private_pinned) { Fabricate(:status, account: account, text: 'secret private stuff', visibility: :private) } let(:remote_account) { nil } diff --git a/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb b/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb index 5935049dcfc..8fcce165b3d 100644 --- a/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb +++ b/spec/controllers/activitypub/followers_synchronizations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controller do +RSpec.describe ActivityPub::FollowersSynchronizationsController do let!(:account) { Fabricate(:account) } let!(:follower_1) { Fabricate(:account, domain: 'example.com', uri: 'https://example.com/users/a') } let!(:follower_2) { Fabricate(:account, domain: 'example.com', uri: 'https://example.com/users/b') } diff --git a/spec/controllers/activitypub/inboxes_controller_spec.rb b/spec/controllers/activitypub/inboxes_controller_spec.rb index 82146f34d93..030a303266f 100644 --- a/spec/controllers/activitypub/inboxes_controller_spec.rb +++ b/spec/controllers/activitypub/inboxes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ActivityPub::InboxesController, type: :controller do +RSpec.describe ActivityPub::InboxesController do let(:remote_account) { nil } before do diff --git a/spec/controllers/activitypub/outboxes_controller_spec.rb b/spec/controllers/activitypub/outboxes_controller_spec.rb index 189b46a7d25..8823d9fe7eb 100644 --- a/spec/controllers/activitypub/outboxes_controller_spec.rb +++ b/spec/controllers/activitypub/outboxes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ActivityPub::OutboxesController, type: :controller do +RSpec.describe ActivityPub::OutboxesController do let!(:account) { Fabricate(:account) } shared_examples 'cacheable response' do diff --git a/spec/controllers/activitypub/replies_controller_spec.rb b/spec/controllers/activitypub/replies_controller_spec.rb index 582ef863f24..c7b65f004de 100644 --- a/spec/controllers/activitypub/replies_controller_spec.rb +++ b/spec/controllers/activitypub/replies_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ActivityPub::RepliesController, type: :controller do +RSpec.describe ActivityPub::RepliesController do let(:status) { Fabricate(:status, visibility: parent_visibility) } let(:remote_account) { Fabricate(:account, domain: 'foobar.com') } let(:remote_reply_id) { 'https://foobar.com/statuses/1234' } diff --git a/spec/controllers/admin/account_moderation_notes_controller_spec.rb b/spec/controllers/admin/account_moderation_notes_controller_spec.rb index d2c52f59409..848281c2902 100644 --- a/spec/controllers/admin/account_moderation_notes_controller_spec.rb +++ b/spec/controllers/admin/account_moderation_notes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::AccountModerationNotesController, type: :controller do +RSpec.describe Admin::AccountModerationNotesController do render_views let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } diff --git a/spec/controllers/admin/accounts_controller_spec.rb b/spec/controllers/admin/accounts_controller_spec.rb index b182715b0be..7d001c4cbcf 100644 --- a/spec/controllers/admin/accounts_controller_spec.rb +++ b/spec/controllers/admin/accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::AccountsController, type: :controller do +RSpec.describe Admin::AccountsController do render_views before { sign_in current_user, scope: :user } diff --git a/spec/controllers/admin/action_logs_controller_spec.rb b/spec/controllers/admin/action_logs_controller_spec.rb index 7cd8cdf4628..044ddf2c420 100644 --- a/spec/controllers/admin/action_logs_controller_spec.rb +++ b/spec/controllers/admin/action_logs_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Admin::ActionLogsController, type: :controller do +describe Admin::ActionLogsController do render_views # Action logs typically cause issues when their targets are not in the database diff --git a/spec/controllers/admin/base_controller_spec.rb b/spec/controllers/admin/base_controller_spec.rb index bfb9d2c7d43..1f1fa8441af 100644 --- a/spec/controllers/admin/base_controller_spec.rb +++ b/spec/controllers/admin/base_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Admin::BaseController, type: :controller do +describe Admin::BaseController do controller do def success authorize :dashboard, :index? diff --git a/spec/controllers/admin/change_emails_controller_spec.rb b/spec/controllers/admin/change_emails_controller_spec.rb index 83299847155..503862a7b99 100644 --- a/spec/controllers/admin/change_emails_controller_spec.rb +++ b/spec/controllers/admin/change_emails_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::ChangeEmailsController, type: :controller do +RSpec.describe Admin::ChangeEmailsController do render_views let(:admin) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } diff --git a/spec/controllers/admin/confirmations_controller_spec.rb b/spec/controllers/admin/confirmations_controller_spec.rb index d05711e272d..ffab56d9aaa 100644 --- a/spec/controllers/admin/confirmations_controller_spec.rb +++ b/spec/controllers/admin/confirmations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::ConfirmationsController, type: :controller do +RSpec.describe Admin::ConfirmationsController do render_views before do diff --git a/spec/controllers/admin/dashboard_controller_spec.rb b/spec/controllers/admin/dashboard_controller_spec.rb index ab3738fcd73..25300fdd90e 100644 --- a/spec/controllers/admin/dashboard_controller_spec.rb +++ b/spec/controllers/admin/dashboard_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Admin::DashboardController, type: :controller do +describe Admin::DashboardController do render_views describe 'GET #index' do diff --git a/spec/controllers/admin/disputes/appeals_controller_spec.rb b/spec/controllers/admin/disputes/appeals_controller_spec.rb index 576a0c12b9c..371c4f483d3 100644 --- a/spec/controllers/admin/disputes/appeals_controller_spec.rb +++ b/spec/controllers/admin/disputes/appeals_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::Disputes::AppealsController, type: :controller do +RSpec.describe Admin::Disputes::AppealsController do render_views before { sign_in current_user, scope: :user } diff --git a/spec/controllers/admin/domain_allows_controller_spec.rb b/spec/controllers/admin/domain_allows_controller_spec.rb index 2a0f47145af..6b0453476a9 100644 --- a/spec/controllers/admin/domain_allows_controller_spec.rb +++ b/spec/controllers/admin/domain_allows_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::DomainAllowsController, type: :controller do +RSpec.describe Admin::DomainAllowsController do render_views before do diff --git a/spec/controllers/admin/domain_blocks_controller_spec.rb b/spec/controllers/admin/domain_blocks_controller_spec.rb index 99fb1461473..6aed172ac56 100644 --- a/spec/controllers/admin/domain_blocks_controller_spec.rb +++ b/spec/controllers/admin/domain_blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::DomainBlocksController, type: :controller do +RSpec.describe Admin::DomainBlocksController do render_views before do diff --git a/spec/controllers/admin/email_domain_blocks_controller_spec.rb b/spec/controllers/admin/email_domain_blocks_controller_spec.rb index e9cef4a94c8..42866001449 100644 --- a/spec/controllers/admin/email_domain_blocks_controller_spec.rb +++ b/spec/controllers/admin/email_domain_blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::EmailDomainBlocksController, type: :controller do +RSpec.describe Admin::EmailDomainBlocksController do render_views before do diff --git a/spec/controllers/admin/export_domain_allows_controller_spec.rb b/spec/controllers/admin/export_domain_allows_controller_spec.rb index f12bd1344f9..9d50c04aad1 100644 --- a/spec/controllers/admin/export_domain_allows_controller_spec.rb +++ b/spec/controllers/admin/export_domain_allows_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::ExportDomainAllowsController, type: :controller do +RSpec.describe Admin::ExportDomainAllowsController do render_views before do diff --git a/spec/controllers/admin/export_domain_blocks_controller_spec.rb b/spec/controllers/admin/export_domain_blocks_controller_spec.rb index 6e7475ed123..1a630777364 100644 --- a/spec/controllers/admin/export_domain_blocks_controller_spec.rb +++ b/spec/controllers/admin/export_domain_blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::ExportDomainBlocksController, type: :controller do +RSpec.describe Admin::ExportDomainBlocksController do render_views before do diff --git a/spec/controllers/admin/instances_controller_spec.rb b/spec/controllers/admin/instances_controller_spec.rb index 33174b99218..ce062085f4a 100644 --- a/spec/controllers/admin/instances_controller_spec.rb +++ b/spec/controllers/admin/instances_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::InstancesController, type: :controller do +RSpec.describe Admin::InstancesController do render_views let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } diff --git a/spec/controllers/admin/settings/branding_controller_spec.rb b/spec/controllers/admin/settings/branding_controller_spec.rb index ee1c441bc5b..4b0f1e21e01 100644 --- a/spec/controllers/admin/settings/branding_controller_spec.rb +++ b/spec/controllers/admin/settings/branding_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::Settings::BrandingController, type: :controller do +RSpec.describe Admin::Settings::BrandingController do render_views describe 'When signed in as an admin' do diff --git a/spec/controllers/admin/tags_controller_spec.rb b/spec/controllers/admin/tags_controller_spec.rb index 52fd09eb107..313298f14a3 100644 --- a/spec/controllers/admin/tags_controller_spec.rb +++ b/spec/controllers/admin/tags_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::TagsController, type: :controller do +RSpec.describe Admin::TagsController do render_views before do diff --git a/spec/controllers/api/oembed_controller_spec.rb b/spec/controllers/api/oembed_controller_spec.rb index 02875ee9f33..70248c39821 100644 --- a/spec/controllers/api/oembed_controller_spec.rb +++ b/spec/controllers/api/oembed_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::OEmbedController, type: :controller do +RSpec.describe Api::OEmbedController do render_views let(:alice) { Fabricate(:account, username: 'alice') } diff --git a/spec/controllers/api/v1/accounts/pins_controller_spec.rb b/spec/controllers/api/v1/accounts/pins_controller_spec.rb index 19bba093e43..b4aa9b7116e 100644 --- a/spec/controllers/api/v1/accounts/pins_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/pins_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Accounts::PinsController, type: :controller do +RSpec.describe Api::V1::Accounts::PinsController do let(:john) { Fabricate(:user) } let(:kevin) { Fabricate(:user) } let(:token) { Fabricate(:accessible_access_token, resource_owner_id: john.id, scopes: 'write:accounts') } diff --git a/spec/controllers/api/v1/accounts/search_controller_spec.rb b/spec/controllers/api/v1/accounts/search_controller_spec.rb index d2b675a3c83..aa9455a4a33 100644 --- a/spec/controllers/api/v1/accounts/search_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/search_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Accounts::SearchController, type: :controller do +RSpec.describe Api::V1::Accounts::SearchController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/accounts_controller_spec.rb b/spec/controllers/api/v1/accounts_controller_spec.rb index 84cbd9cc7b8..1cca69de73f 100644 --- a/spec/controllers/api/v1/accounts_controller_spec.rb +++ b/spec/controllers/api/v1/accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::AccountsController, type: :controller do +RSpec.describe Api::V1::AccountsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/admin/account_actions_controller_spec.rb b/spec/controllers/api/v1/admin/account_actions_controller_spec.rb index cafbee212d4..1c976455e1c 100644 --- a/spec/controllers/api/v1/admin/account_actions_controller_spec.rb +++ b/spec/controllers/api/v1/admin/account_actions_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Admin::AccountActionsController, type: :controller do +RSpec.describe Api::V1::Admin::AccountActionsController do render_views let(:role) { UserRole.find_by(name: 'Moderator') } diff --git a/spec/controllers/api/v1/admin/accounts_controller_spec.rb b/spec/controllers/api/v1/admin/accounts_controller_spec.rb index 9ffcdb34fbd..852a5210218 100644 --- a/spec/controllers/api/v1/admin/accounts_controller_spec.rb +++ b/spec/controllers/api/v1/admin/accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Admin::AccountsController, type: :controller do +RSpec.describe Api::V1::Admin::AccountsController do render_views let(:role) { UserRole.find_by(name: 'Moderator') } diff --git a/spec/controllers/api/v1/admin/domain_allows_controller_spec.rb b/spec/controllers/api/v1/admin/domain_allows_controller_spec.rb index 15567907e44..9db8a35b469 100644 --- a/spec/controllers/api/v1/admin/domain_allows_controller_spec.rb +++ b/spec/controllers/api/v1/admin/domain_allows_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Admin::DomainAllowsController, type: :controller do +RSpec.describe Api::V1::Admin::DomainAllowsController do render_views let(:role) { UserRole.find_by(name: 'Admin') } diff --git a/spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb b/spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb index ca5f8b9747b..5659843f7a7 100644 --- a/spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb +++ b/spec/controllers/api/v1/admin/domain_blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Admin::DomainBlocksController, type: :controller do +RSpec.describe Api::V1::Admin::DomainBlocksController do render_views let(:role) { UserRole.find_by(name: 'Admin') } diff --git a/spec/controllers/api/v1/admin/reports_controller_spec.rb b/spec/controllers/api/v1/admin/reports_controller_spec.rb index 3d61fe5c3ad..4f0c484e59a 100644 --- a/spec/controllers/api/v1/admin/reports_controller_spec.rb +++ b/spec/controllers/api/v1/admin/reports_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Admin::ReportsController, type: :controller do +RSpec.describe Api::V1::Admin::ReportsController do render_views let(:role) { UserRole.find_by(name: 'Moderator') } diff --git a/spec/controllers/api/v1/announcements/reactions_controller_spec.rb b/spec/controllers/api/v1/announcements/reactions_controller_spec.rb index 25c52aa1d3f..10aaa553f5a 100644 --- a/spec/controllers/api/v1/announcements/reactions_controller_spec.rb +++ b/spec/controllers/api/v1/announcements/reactions_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Announcements::ReactionsController, type: :controller do +RSpec.describe Api::V1::Announcements::ReactionsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/announcements_controller_spec.rb b/spec/controllers/api/v1/announcements_controller_spec.rb index eaab2abd801..15d94b45120 100644 --- a/spec/controllers/api/v1/announcements_controller_spec.rb +++ b/spec/controllers/api/v1/announcements_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::AnnouncementsController, type: :controller do +RSpec.describe Api::V1::AnnouncementsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/apps_controller_spec.rb b/spec/controllers/api/v1/apps_controller_spec.rb index bde132c52e2..de2a07f20a1 100644 --- a/spec/controllers/api/v1/apps_controller_spec.rb +++ b/spec/controllers/api/v1/apps_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::AppsController, type: :controller do +RSpec.describe Api::V1::AppsController do render_views describe 'POST #create' do diff --git a/spec/controllers/api/v1/blocks_controller_spec.rb b/spec/controllers/api/v1/blocks_controller_spec.rb index fe715318656..eaafc1b4fa0 100644 --- a/spec/controllers/api/v1/blocks_controller_spec.rb +++ b/spec/controllers/api/v1/blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::BlocksController, type: :controller do +RSpec.describe Api::V1::BlocksController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/bookmarks_controller_spec.rb b/spec/controllers/api/v1/bookmarks_controller_spec.rb index bbf92c1539c..69a37388eab 100644 --- a/spec/controllers/api/v1/bookmarks_controller_spec.rb +++ b/spec/controllers/api/v1/bookmarks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::BookmarksController, type: :controller do +RSpec.describe Api::V1::BookmarksController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/conversations_controller_spec.rb b/spec/controllers/api/v1/conversations_controller_spec.rb index 36c4cb56f93..f888517154a 100644 --- a/spec/controllers/api/v1/conversations_controller_spec.rb +++ b/spec/controllers/api/v1/conversations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::ConversationsController, type: :controller do +RSpec.describe Api::V1::ConversationsController do render_views let!(:user) { Fabricate(:user, account_attributes: { username: 'alice' }) } diff --git a/spec/controllers/api/v1/custom_emojis_controller_spec.rb b/spec/controllers/api/v1/custom_emojis_controller_spec.rb index fe8daa7c5a9..08af57f405e 100644 --- a/spec/controllers/api/v1/custom_emojis_controller_spec.rb +++ b/spec/controllers/api/v1/custom_emojis_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::CustomEmojisController, type: :controller do +RSpec.describe Api::V1::CustomEmojisController do render_views describe 'GET #index' do diff --git a/spec/controllers/api/v1/domain_blocks_controller_spec.rb b/spec/controllers/api/v1/domain_blocks_controller_spec.rb index 467ddbccce4..aa98ec4c323 100644 --- a/spec/controllers/api/v1/domain_blocks_controller_spec.rb +++ b/spec/controllers/api/v1/domain_blocks_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::DomainBlocksController, type: :controller do +RSpec.describe Api::V1::DomainBlocksController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/emails/confirmations_controller_spec.rb b/spec/controllers/api/v1/emails/confirmations_controller_spec.rb index 91defc08622..2a0703ed9c8 100644 --- a/spec/controllers/api/v1/emails/confirmations_controller_spec.rb +++ b/spec/controllers/api/v1/emails/confirmations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Emails::ConfirmationsController, type: :controller do +RSpec.describe Api::V1::Emails::ConfirmationsController do let(:confirmed_at) { nil } let(:user) { Fabricate(:user, confirmed_at: confirmed_at) } let(:app) { Fabricate(:application) } diff --git a/spec/controllers/api/v1/endorsements_controller_spec.rb b/spec/controllers/api/v1/endorsements_controller_spec.rb index ad5ff400f5e..738804bb7be 100644 --- a/spec/controllers/api/v1/endorsements_controller_spec.rb +++ b/spec/controllers/api/v1/endorsements_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::EndorsementsController, type: :controller do +RSpec.describe Api::V1::EndorsementsController do let(:user) { Fabricate(:user) } let(:token) { Fabricate(:accessible_access_token, resource_owner_id: user.id, scopes: 'read:accounts') } diff --git a/spec/controllers/api/v1/favourites_controller_spec.rb b/spec/controllers/api/v1/favourites_controller_spec.rb index dd07bbb6e15..c9ca046be0d 100644 --- a/spec/controllers/api/v1/favourites_controller_spec.rb +++ b/spec/controllers/api/v1/favourites_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::FavouritesController, type: :controller do +RSpec.describe Api::V1::FavouritesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/filters_controller_spec.rb b/spec/controllers/api/v1/filters_controller_spec.rb index d583365cc17..8ccd2f4d666 100644 --- a/spec/controllers/api/v1/filters_controller_spec.rb +++ b/spec/controllers/api/v1/filters_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::FiltersController, type: :controller do +RSpec.describe Api::V1::FiltersController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/follow_requests_controller_spec.rb b/spec/controllers/api/v1/follow_requests_controller_spec.rb index 0220e027706..0a2c27d9ed6 100644 --- a/spec/controllers/api/v1/follow_requests_controller_spec.rb +++ b/spec/controllers/api/v1/follow_requests_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::FollowRequestsController, type: :controller do +RSpec.describe Api::V1::FollowRequestsController do render_views let(:user) { Fabricate(:user, account_attributes: { locked: true }) } diff --git a/spec/controllers/api/v1/followed_tags_controller_spec.rb b/spec/controllers/api/v1/followed_tags_controller_spec.rb index e990065a9dc..c1a366d4e37 100644 --- a/spec/controllers/api/v1/followed_tags_controller_spec.rb +++ b/spec/controllers/api/v1/followed_tags_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::FollowedTagsController, type: :controller do +RSpec.describe Api::V1::FollowedTagsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/instances/activity_controller_spec.rb b/spec/controllers/api/v1/instances/activity_controller_spec.rb index 0dcbd3a63ba..b446a521f8b 100644 --- a/spec/controllers/api/v1/instances/activity_controller_spec.rb +++ b/spec/controllers/api/v1/instances/activity_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Instances::ActivityController, type: :controller do +RSpec.describe Api::V1::Instances::ActivityController do describe 'GET #show' do it 'returns 200' do get :show diff --git a/spec/controllers/api/v1/instances/peers_controller_spec.rb b/spec/controllers/api/v1/instances/peers_controller_spec.rb index 532443d1f4a..92b1019154f 100644 --- a/spec/controllers/api/v1/instances/peers_controller_spec.rb +++ b/spec/controllers/api/v1/instances/peers_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Instances::PeersController, type: :controller do +RSpec.describe Api::V1::Instances::PeersController do describe 'GET #index' do it 'returns 200' do get :index diff --git a/spec/controllers/api/v1/instances_controller_spec.rb b/spec/controllers/api/v1/instances_controller_spec.rb index 842669d9655..fcc2c9288ca 100644 --- a/spec/controllers/api/v1/instances_controller_spec.rb +++ b/spec/controllers/api/v1/instances_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::InstancesController, type: :controller do +RSpec.describe Api::V1::InstancesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/lists_controller_spec.rb b/spec/controllers/api/v1/lists_controller_spec.rb index f54d27e42bf..15b9840ce15 100644 --- a/spec/controllers/api/v1/lists_controller_spec.rb +++ b/spec/controllers/api/v1/lists_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::ListsController, type: :controller do +RSpec.describe Api::V1::ListsController do render_views let!(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/markers_controller_spec.rb b/spec/controllers/api/v1/markers_controller_spec.rb index fb5f59a7cfc..64e9dcafb6f 100644 --- a/spec/controllers/api/v1/markers_controller_spec.rb +++ b/spec/controllers/api/v1/markers_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::MarkersController, type: :controller do +RSpec.describe Api::V1::MarkersController do render_views let!(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/media_controller_spec.rb b/spec/controllers/api/v1/media_controller_spec.rb index 23e8664aabd..20d58e8c03b 100644 --- a/spec/controllers/api/v1/media_controller_spec.rb +++ b/spec/controllers/api/v1/media_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::MediaController, type: :controller do +RSpec.describe Api::V1::MediaController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/mutes_controller_spec.rb b/spec/controllers/api/v1/mutes_controller_spec.rb index feaa486c00c..2645ed4e9da 100644 --- a/spec/controllers/api/v1/mutes_controller_spec.rb +++ b/spec/controllers/api/v1/mutes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::MutesController, type: :controller do +RSpec.describe Api::V1::MutesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/notifications_controller_spec.rb b/spec/controllers/api/v1/notifications_controller_spec.rb index f6cbd105e3b..28b8e656ab5 100644 --- a/spec/controllers/api/v1/notifications_controller_spec.rb +++ b/spec/controllers/api/v1/notifications_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::NotificationsController, type: :controller do +RSpec.describe Api::V1::NotificationsController do render_views let(:user) { Fabricate(:user, account_attributes: { username: 'alice' }) } diff --git a/spec/controllers/api/v1/polls/votes_controller_spec.rb b/spec/controllers/api/v1/polls/votes_controller_spec.rb index 9d9b14e81c0..7abd2a1b171 100644 --- a/spec/controllers/api/v1/polls/votes_controller_spec.rb +++ b/spec/controllers/api/v1/polls/votes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Polls::VotesController, type: :controller do +RSpec.describe Api::V1::Polls::VotesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/polls_controller_spec.rb b/spec/controllers/api/v1/polls_controller_spec.rb index 0602e44eef2..3aae5496db9 100644 --- a/spec/controllers/api/v1/polls_controller_spec.rb +++ b/spec/controllers/api/v1/polls_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::PollsController, type: :controller do +RSpec.describe Api::V1::PollsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/reports_controller_spec.rb b/spec/controllers/api/v1/reports_controller_spec.rb index 06afaf0a75d..0eb9ce17097 100644 --- a/spec/controllers/api/v1/reports_controller_spec.rb +++ b/spec/controllers/api/v1/reports_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::ReportsController, type: :controller do +RSpec.describe Api::V1::ReportsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb b/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb index cac7b42b505..01816743e52 100644 --- a/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb +++ b/spec/controllers/api/v1/statuses/favourited_by_accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Statuses::FavouritedByAccountsController, type: :controller do +RSpec.describe Api::V1::Statuses::FavouritedByAccountsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb b/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb index c5fedcefa37..756010af87e 100644 --- a/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb +++ b/spec/controllers/api/v1/statuses/reblogged_by_accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Statuses::RebloggedByAccountsController, type: :controller do +RSpec.describe Api::V1::Statuses::RebloggedByAccountsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/statuses_controller_spec.rb b/spec/controllers/api/v1/statuses_controller_spec.rb index f011bfd4736..ab6f80a61b2 100644 --- a/spec/controllers/api/v1/statuses_controller_spec.rb +++ b/spec/controllers/api/v1/statuses_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::StatusesController, type: :controller do +RSpec.describe Api::V1::StatusesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/suggestions_controller_spec.rb b/spec/controllers/api/v1/suggestions_controller_spec.rb index c99380c58b3..c61ce0ec05a 100644 --- a/spec/controllers/api/v1/suggestions_controller_spec.rb +++ b/spec/controllers/api/v1/suggestions_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::SuggestionsController, type: :controller do +RSpec.describe Api::V1::SuggestionsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/tags_controller_spec.rb b/spec/controllers/api/v1/tags_controller_spec.rb index ed17a4fbfb9..e914f5992d8 100644 --- a/spec/controllers/api/v1/tags_controller_spec.rb +++ b/spec/controllers/api/v1/tags_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::TagsController, type: :controller do +RSpec.describe Api::V1::TagsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v1/trends/tags_controller_spec.rb b/spec/controllers/api/v1/trends/tags_controller_spec.rb index d29551c56c0..84370d84126 100644 --- a/spec/controllers/api/v1/trends/tags_controller_spec.rb +++ b/spec/controllers/api/v1/trends/tags_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V1::Trends::TagsController, type: :controller do +RSpec.describe Api::V1::Trends::TagsController do render_views describe 'GET #index' do diff --git a/spec/controllers/api/v2/admin/accounts_controller_spec.rb b/spec/controllers/api/v2/admin/accounts_controller_spec.rb index 5766fd549ee..762c84af949 100644 --- a/spec/controllers/api/v2/admin/accounts_controller_spec.rb +++ b/spec/controllers/api/v2/admin/accounts_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V2::Admin::AccountsController, type: :controller do +RSpec.describe Api::V2::Admin::AccountsController do render_views let(:role) { UserRole.find_by(name: 'Moderator') } diff --git a/spec/controllers/api/v2/filters/keywords_controller_spec.rb b/spec/controllers/api/v2/filters/keywords_controller_spec.rb index 8c61059c64f..057a9c3d003 100644 --- a/spec/controllers/api/v2/filters/keywords_controller_spec.rb +++ b/spec/controllers/api/v2/filters/keywords_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V2::Filters::KeywordsController, type: :controller do +RSpec.describe Api::V2::Filters::KeywordsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v2/filters/statuses_controller_spec.rb b/spec/controllers/api/v2/filters/statuses_controller_spec.rb index 330cf45a602..588532ffd22 100644 --- a/spec/controllers/api/v2/filters/statuses_controller_spec.rb +++ b/spec/controllers/api/v2/filters/statuses_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V2::Filters::StatusesController, type: :controller do +RSpec.describe Api::V2::Filters::StatusesController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v2/filters_controller_spec.rb b/spec/controllers/api/v2/filters_controller_spec.rb index 4334a46fe9f..722037eeb22 100644 --- a/spec/controllers/api/v2/filters_controller_spec.rb +++ b/spec/controllers/api/v2/filters_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V2::FiltersController, type: :controller do +RSpec.describe Api::V2::FiltersController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/api/v2/search_controller_spec.rb b/spec/controllers/api/v2/search_controller_spec.rb index d417ea58cab..bfabe8cc172 100644 --- a/spec/controllers/api/v2/search_controller_spec.rb +++ b/spec/controllers/api/v2/search_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Api::V2::SearchController, type: :controller do +RSpec.describe Api::V2::SearchController do render_views context 'with token' do diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index a8344d05413..e9d47960353 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do controller do def success head 200 diff --git a/spec/controllers/auth/challenges_controller_spec.rb b/spec/controllers/auth/challenges_controller_spec.rb index 2a6ca301ef7..32bbedde633 100644 --- a/spec/controllers/auth/challenges_controller_spec.rb +++ b/spec/controllers/auth/challenges_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Auth::ChallengesController, type: :controller do +describe Auth::ChallengesController do render_views let(:password) { 'foobar12345' } diff --git a/spec/controllers/auth/confirmations_controller_spec.rb b/spec/controllers/auth/confirmations_controller_spec.rb index 8469119d23f..799d3857e4c 100644 --- a/spec/controllers/auth/confirmations_controller_spec.rb +++ b/spec/controllers/auth/confirmations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Auth::ConfirmationsController, type: :controller do +describe Auth::ConfirmationsController do render_views describe 'GET #new' do diff --git a/spec/controllers/auth/passwords_controller_spec.rb b/spec/controllers/auth/passwords_controller_spec.rb index 1c6874f08c4..38fbed27a76 100644 --- a/spec/controllers/auth/passwords_controller_spec.rb +++ b/spec/controllers/auth/passwords_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Auth::PasswordsController, type: :controller do +describe Auth::PasswordsController do include Devise::Test::ControllerHelpers describe 'GET #new' do diff --git a/spec/controllers/auth/registrations_controller_spec.rb b/spec/controllers/auth/registrations_controller_spec.rb index 3a77aed94cb..ad8465e2ace 100644 --- a/spec/controllers/auth/registrations_controller_spec.rb +++ b/spec/controllers/auth/registrations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Auth::RegistrationsController, type: :controller do +RSpec.describe Auth::RegistrationsController do render_views shared_examples 'checks for enabled registrations' do |path| diff --git a/spec/controllers/auth/sessions_controller_spec.rb b/spec/controllers/auth/sessions_controller_spec.rb index bbf4c0c889f..5b7d5d5cd4e 100644 --- a/spec/controllers/auth/sessions_controller_spec.rb +++ b/spec/controllers/auth/sessions_controller_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' require 'webauthn/fake_client' -RSpec.describe Auth::SessionsController, type: :controller do +RSpec.describe Auth::SessionsController do render_views before do diff --git a/spec/controllers/concerns/account_controller_concern_spec.rb b/spec/controllers/concerns/account_controller_concern_spec.rb index 99975f4c441..57fc6f96539 100644 --- a/spec/controllers/concerns/account_controller_concern_spec.rb +++ b/spec/controllers/concerns/account_controller_concern_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do controller do include AccountControllerConcern diff --git a/spec/controllers/concerns/cache_concern_spec.rb b/spec/controllers/concerns/cache_concern_spec.rb index 528d1a66ed2..bf328d679d1 100644 --- a/spec/controllers/concerns/cache_concern_spec.rb +++ b/spec/controllers/concerns/cache_concern_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe CacheConcern, type: :controller do +RSpec.describe CacheConcern do controller(ApplicationController) do include CacheConcern diff --git a/spec/controllers/concerns/challengable_concern_spec.rb b/spec/controllers/concerns/challengable_concern_spec.rb index e6868fb2910..3324bdd24fc 100644 --- a/spec/controllers/concerns/challengable_concern_spec.rb +++ b/spec/controllers/concerns/challengable_concern_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe ChallengableConcern, type: :controller do +RSpec.describe ChallengableConcern do controller(ApplicationController) do include ChallengableConcern diff --git a/spec/controllers/concerns/export_controller_concern_spec.rb b/spec/controllers/concerns/export_controller_concern_spec.rb index 003fd17f6f0..b380246e7e4 100644 --- a/spec/controllers/concerns/export_controller_concern_spec.rb +++ b/spec/controllers/concerns/export_controller_concern_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do controller do include ExportControllerConcern diff --git a/spec/controllers/concerns/localized_spec.rb b/spec/controllers/concerns/localized_spec.rb index 1a54290f97c..caac94ea954 100644 --- a/spec/controllers/concerns/localized_spec.rb +++ b/spec/controllers/concerns/localized_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do controller do include Localized diff --git a/spec/controllers/concerns/signature_verification_spec.rb b/spec/controllers/concerns/signature_verification_spec.rb index e5b5ed6173f..45d04aa61d1 100644 --- a/spec/controllers/concerns/signature_verification_spec.rb +++ b/spec/controllers/concerns/signature_verification_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do let(:wrapped_actor_class) do Class.new do attr_reader :wrapped_account diff --git a/spec/controllers/concerns/user_tracking_concern_spec.rb b/spec/controllers/concerns/user_tracking_concern_spec.rb index b2548d5c007..8e272468b69 100644 --- a/spec/controllers/concerns/user_tracking_concern_spec.rb +++ b/spec/controllers/concerns/user_tracking_concern_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe ApplicationController, type: :controller do +describe ApplicationController do controller do include UserTrackingConcern diff --git a/spec/controllers/disputes/appeals_controller_spec.rb b/spec/controllers/disputes/appeals_controller_spec.rb index affe63c59bd..d0e1cd3908a 100644 --- a/spec/controllers/disputes/appeals_controller_spec.rb +++ b/spec/controllers/disputes/appeals_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Disputes::AppealsController, type: :controller do +RSpec.describe Disputes::AppealsController do render_views before { sign_in current_user, scope: :user } diff --git a/spec/controllers/disputes/strikes_controller_spec.rb b/spec/controllers/disputes/strikes_controller_spec.rb index 1d678875c60..f6d28fc09a6 100644 --- a/spec/controllers/disputes/strikes_controller_spec.rb +++ b/spec/controllers/disputes/strikes_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Disputes::StrikesController, type: :controller do +RSpec.describe Disputes::StrikesController do render_views before { sign_in current_user, scope: :user } diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index 0d3722920c7..3ddc5691a97 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe HomeController, type: :controller do +RSpec.describe HomeController do render_views describe 'GET #index' do diff --git a/spec/controllers/instance_actors_controller_spec.rb b/spec/controllers/instance_actors_controller_spec.rb index 3298bd9e6b4..8406094311e 100644 --- a/spec/controllers/instance_actors_controller_spec.rb +++ b/spec/controllers/instance_actors_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe InstanceActorsController, type: :controller do +RSpec.describe InstanceActorsController do describe 'GET #show' do context 'with JSON' do let(:format) { 'json' } diff --git a/spec/controllers/intents_controller_spec.rb b/spec/controllers/intents_controller_spec.rb index 02b46ddc797..668d833ea75 100644 --- a/spec/controllers/intents_controller_spec.rb +++ b/spec/controllers/intents_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe IntentsController, type: :controller do +RSpec.describe IntentsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/oauth/authorizations_controller_spec.rb b/spec/controllers/oauth/authorizations_controller_spec.rb index 6f087625c5c..9b3ae251e6c 100644 --- a/spec/controllers/oauth/authorizations_controller_spec.rb +++ b/spec/controllers/oauth/authorizations_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Oauth::AuthorizationsController, type: :controller do +RSpec.describe Oauth::AuthorizationsController do render_views let(:app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: 'http://localhost/', scopes: 'read') } diff --git a/spec/controllers/oauth/tokens_controller_spec.rb b/spec/controllers/oauth/tokens_controller_spec.rb index 3804e035bbc..973393bcf2a 100644 --- a/spec/controllers/oauth/tokens_controller_spec.rb +++ b/spec/controllers/oauth/tokens_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Oauth::TokensController, type: :controller do +RSpec.describe Oauth::TokensController do describe 'POST #revoke' do let!(:user) { Fabricate(:user) } let!(:application) { Fabricate(:application, confidential: false) } diff --git a/spec/controllers/settings/imports_controller_spec.rb b/spec/controllers/settings/imports_controller_spec.rb index 500b4423965..76e1e4ecb0c 100644 --- a/spec/controllers/settings/imports_controller_spec.rb +++ b/spec/controllers/settings/imports_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Settings::ImportsController, type: :controller do +RSpec.describe Settings::ImportsController do render_views let(:user) { Fabricate(:user) } diff --git a/spec/controllers/settings/profiles_controller_spec.rb b/spec/controllers/settings/profiles_controller_spec.rb index 52ae1f5191e..806fad19a83 100644 --- a/spec/controllers/settings/profiles_controller_spec.rb +++ b/spec/controllers/settings/profiles_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Settings::ProfilesController, type: :controller do +RSpec.describe Settings::ProfilesController do render_views let!(:user) { Fabricate(:user) } diff --git a/spec/controllers/statuses_cleanup_controller_spec.rb b/spec/controllers/statuses_cleanup_controller_spec.rb index 693260f92b9..e082b69c519 100644 --- a/spec/controllers/statuses_cleanup_controller_spec.rb +++ b/spec/controllers/statuses_cleanup_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe StatusesCleanupController, type: :controller do +RSpec.describe StatusesCleanupController do render_views before do diff --git a/spec/controllers/tags_controller_spec.rb b/spec/controllers/tags_controller_spec.rb index 7a07801be70..d41e707d432 100644 --- a/spec/controllers/tags_controller_spec.rb +++ b/spec/controllers/tags_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe TagsController, type: :controller do +RSpec.describe TagsController do render_views describe 'GET #show' do diff --git a/spec/controllers/well_known/host_meta_controller_spec.rb b/spec/controllers/well_known/host_meta_controller_spec.rb index d537043708f..4bd161cd9d3 100644 --- a/spec/controllers/well_known/host_meta_controller_spec.rb +++ b/spec/controllers/well_known/host_meta_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe WellKnown::HostMetaController, type: :controller do +describe WellKnown::HostMetaController do render_views describe 'GET #show' do diff --git a/spec/controllers/well_known/nodeinfo_controller_spec.rb b/spec/controllers/well_known/nodeinfo_controller_spec.rb index f5cde150da5..6ec34afd04c 100644 --- a/spec/controllers/well_known/nodeinfo_controller_spec.rb +++ b/spec/controllers/well_known/nodeinfo_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe WellKnown::NodeInfoController, type: :controller do +describe WellKnown::NodeInfoController do render_views describe 'GET #index' do diff --git a/spec/controllers/well_known/webfinger_controller_spec.rb b/spec/controllers/well_known/webfinger_controller_spec.rb index 401f7421fe5..8dc0f329b65 100644 --- a/spec/controllers/well_known/webfinger_controller_spec.rb +++ b/spec/controllers/well_known/webfinger_controller_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe WellKnown::WebfingerController, type: :controller do +describe WellKnown::WebfingerController do render_views describe 'GET #show' do diff --git a/spec/helpers/accounts_helper_spec.rb b/spec/helpers/accounts_helper_spec.rb index 184b47dec68..2c949cde696 100644 --- a/spec/helpers/accounts_helper_spec.rb +++ b/spec/helpers/accounts_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountsHelper, type: :helper do +RSpec.describe AccountsHelper do def set_not_embedded_view params[:controller] = "not_#{StatusesHelper::EMBEDDED_CONTROLLER}" params[:action] = "not_#{StatusesHelper::EMBEDDED_ACTION}" diff --git a/spec/helpers/admin/account_moderation_notes_helper_spec.rb b/spec/helpers/admin/account_moderation_notes_helper_spec.rb index bacc8dcf37e..6386f07ac92 100644 --- a/spec/helpers/admin/account_moderation_notes_helper_spec.rb +++ b/spec/helpers/admin/account_moderation_notes_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::AccountModerationNotesHelper, type: :helper do +RSpec.describe Admin::AccountModerationNotesHelper do include AccountsHelper describe '#admin_account_link_to' do diff --git a/spec/helpers/admin/action_logs_helper_spec.rb b/spec/helpers/admin/action_logs_helper_spec.rb index 9d7ed4ab765..4e9d08f09d6 100644 --- a/spec/helpers/admin/action_logs_helper_spec.rb +++ b/spec/helpers/admin/action_logs_helper_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Admin::ActionLogsHelper, type: :helper do +RSpec.describe Admin::ActionLogsHelper do end diff --git a/spec/helpers/flashes_helper_spec.rb b/spec/helpers/flashes_helper_spec.rb index ea143eed722..035e8a1de07 100644 --- a/spec/helpers/flashes_helper_spec.rb +++ b/spec/helpers/flashes_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe FlashesHelper, type: :helper do +describe FlashesHelper do describe 'user_facing_flashes' do it 'returns user facing flashes' do flash[:alert] = 'an alert' diff --git a/spec/helpers/formatting_helper_spec.rb b/spec/helpers/formatting_helper_spec.rb index af604a87b58..d6e7631f66c 100644 --- a/spec/helpers/formatting_helper_spec.rb +++ b/spec/helpers/formatting_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe FormattingHelper, type: :helper do +describe FormattingHelper do include Devise::Test::ControllerHelpers describe '#rss_status_content_format' do diff --git a/spec/helpers/home_helper_spec.rb b/spec/helpers/home_helper_spec.rb index 3d2c5fe2483..15067471ede 100644 --- a/spec/helpers/home_helper_spec.rb +++ b/spec/helpers/home_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe HomeHelper, type: :helper do +RSpec.describe HomeHelper do describe 'default_props' do it 'returns default properties according to the context' do expect(helper.default_props).to eq locale: I18n.locale diff --git a/spec/helpers/routing_helper_spec.rb b/spec/helpers/routing_helper_spec.rb index 44d2fdb4a99..852d02cebc4 100644 --- a/spec/helpers/routing_helper_spec.rb +++ b/spec/helpers/routing_helper_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe RoutingHelper, type: :helper do +RSpec.describe RoutingHelper do describe '.full_asset_url' do around do |example| use_s3 = Rails.configuration.x.use_s3 diff --git a/spec/mailers/admin_mailer_spec.rb b/spec/mailers/admin_mailer_spec.rb index 132c6c75861..8e2eec40fd1 100644 --- a/spec/mailers/admin_mailer_spec.rb +++ b/spec/mailers/admin_mailer_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AdminMailer, type: :mailer do +RSpec.describe AdminMailer do describe '.new_report' do let(:sender) { Fabricate(:account, username: 'John') } let(:recipient) { Fabricate(:account, username: 'Mike') } diff --git a/spec/mailers/notification_mailer_spec.rb b/spec/mailers/notification_mailer_spec.rb index ab98bac3886..3113d05c37f 100644 --- a/spec/mailers/notification_mailer_spec.rb +++ b/spec/mailers/notification_mailer_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe NotificationMailer, type: :mailer do +RSpec.describe NotificationMailer do let(:receiver) { Fabricate(:user) } let(:sender) { Fabricate(:account, username: 'bob') } let(:foreign_status) { Fabricate(:status, account: sender, text: 'The body of the foreign status') } diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index 30824e7b4db..6144b2bbb84 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe UserMailer, type: :mailer do +describe UserMailer do let(:receiver) { Fabricate(:user) } shared_examples 'localized subject' do |*args, **kwrest| diff --git a/spec/models/account/field_spec.rb b/spec/models/account/field_spec.rb index 52183e5aa80..5715a537917 100644 --- a/spec/models/account/field_spec.rb +++ b/spec/models/account/field_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Account::Field, type: :model do +RSpec.describe Account::Field do describe '#verified?' do subject { described_class.new(account, 'name' => 'Foo', 'value' => 'Bar', 'verified_at' => verified_at) } diff --git a/spec/models/account_alias_spec.rb b/spec/models/account_alias_spec.rb index 08c3eaff436..f0cd274ea9c 100644 --- a/spec/models/account_alias_spec.rb +++ b/spec/models/account_alias_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe AccountAlias, type: :model do +RSpec.describe AccountAlias do end diff --git a/spec/models/account_conversation_spec.rb b/spec/models/account_conversation_spec.rb index c4e8918ad2f..a16aa500cf9 100644 --- a/spec/models/account_conversation_spec.rb +++ b/spec/models/account_conversation_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountConversation, type: :model do +RSpec.describe AccountConversation do let!(:alice) { Fabricate(:account, username: 'alice') } let!(:bob) { Fabricate(:account, username: 'bob') } let!(:mark) { Fabricate(:account, username: 'mark') } diff --git a/spec/models/account_deletion_request_spec.rb b/spec/models/account_deletion_request_spec.rb index db332f14cbc..8bbfb695d38 100644 --- a/spec/models/account_deletion_request_spec.rb +++ b/spec/models/account_deletion_request_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe AccountDeletionRequest, type: :model do +RSpec.describe AccountDeletionRequest do end diff --git a/spec/models/account_domain_block_spec.rb b/spec/models/account_domain_block_spec.rb index bc46f44ba79..f3246d04c51 100644 --- a/spec/models/account_domain_block_spec.rb +++ b/spec/models/account_domain_block_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountDomainBlock, type: :model do +RSpec.describe AccountDomainBlock do it 'removes blocking cache after creation' do account = Fabricate(:account) Rails.cache.write("exclude_domains_for:#{account.id}", 'a.domain.already.blocked') diff --git a/spec/models/account_migration_spec.rb b/spec/models/account_migration_spec.rb index a91ba5dc569..0d97ea7e77e 100644 --- a/spec/models/account_migration_spec.rb +++ b/spec/models/account_migration_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountMigration, type: :model do +RSpec.describe AccountMigration do describe 'validations' do let(:source_account) { Fabricate(:account) } let(:target_acct) { target_account.acct } diff --git a/spec/models/account_moderation_note_spec.rb b/spec/models/account_moderation_note_spec.rb index b7f5701e6a5..9d683ca528e 100644 --- a/spec/models/account_moderation_note_spec.rb +++ b/spec/models/account_moderation_note_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe AccountModerationNote, type: :model do +RSpec.describe AccountModerationNote do end diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 7ea3a94f5b9..bbe35f57930 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Account, type: :model do +RSpec.describe Account do context do subject { Fabricate(:account) } diff --git a/spec/models/account_statuses_cleanup_policy_spec.rb b/spec/models/account_statuses_cleanup_policy_spec.rb index dcdd97bda01..391b99ff47a 100644 --- a/spec/models/account_statuses_cleanup_policy_spec.rb +++ b/spec/models/account_statuses_cleanup_policy_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe AccountStatusesCleanupPolicy, type: :model do +RSpec.describe AccountStatusesCleanupPolicy do let(:account) { Fabricate(:account, username: 'alice', domain: nil) } describe 'validation' do diff --git a/spec/models/admin/account_action_spec.rb b/spec/models/admin/account_action_spec.rb index 1fc56efc7ce..442815c8898 100644 --- a/spec/models/admin/account_action_spec.rb +++ b/spec/models/admin/account_action_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::AccountAction, type: :model do +RSpec.describe Admin::AccountAction do let(:account_action) { described_class.new } describe '#save!' do diff --git a/spec/models/admin/action_log_spec.rb b/spec/models/admin/action_log_spec.rb index 3495cc51414..1e3649b833b 100644 --- a/spec/models/admin/action_log_spec.rb +++ b/spec/models/admin/action_log_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Admin::ActionLog, type: :model do +RSpec.describe Admin::ActionLog do describe '#action' do it 'returns action' do action_log = described_class.new(action: 'hoge') diff --git a/spec/models/announcement_mute_spec.rb b/spec/models/announcement_mute_spec.rb index f4a7a5dc974..1937da3aa78 100644 --- a/spec/models/announcement_mute_spec.rb +++ b/spec/models/announcement_mute_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe AnnouncementMute, type: :model do +RSpec.describe AnnouncementMute do end diff --git a/spec/models/announcement_reaction_spec.rb b/spec/models/announcement_reaction_spec.rb index 38095b01544..43cc0e14899 100644 --- a/spec/models/announcement_reaction_spec.rb +++ b/spec/models/announcement_reaction_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe AnnouncementReaction, type: :model do +RSpec.describe AnnouncementReaction do end diff --git a/spec/models/announcement_spec.rb b/spec/models/announcement_spec.rb index 024fa288800..32d398213c7 100644 --- a/spec/models/announcement_spec.rb +++ b/spec/models/announcement_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Announcement, type: :model do +RSpec.describe Announcement do end diff --git a/spec/models/backup_spec.rb b/spec/models/backup_spec.rb index 239e7aef7b6..1303117528c 100644 --- a/spec/models/backup_spec.rb +++ b/spec/models/backup_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Backup, type: :model do +RSpec.describe Backup do end diff --git a/spec/models/block_spec.rb b/spec/models/block_spec.rb index 6e31786d04b..de3410fd583 100644 --- a/spec/models/block_spec.rb +++ b/spec/models/block_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Block, type: :model do +RSpec.describe Block do describe 'validations' do it 'is invalid without an account' do block = Fabricate.build(:block, account: nil) diff --git a/spec/models/canonical_email_block_spec.rb b/spec/models/canonical_email_block_spec.rb index 2b3fd6d6a77..0acff823779 100644 --- a/spec/models/canonical_email_block_spec.rb +++ b/spec/models/canonical_email_block_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe CanonicalEmailBlock, type: :model do +RSpec.describe CanonicalEmailBlock do describe '#email=' do let(:target_hash) { '973dfe463ec85785f5f95af5ba3906eedb2d931c24e69824a89ea65dba4e813b' } diff --git a/spec/models/conversation_mute_spec.rb b/spec/models/conversation_mute_spec.rb index 6439b0ecdfa..3d5504a65c3 100644 --- a/spec/models/conversation_mute_spec.rb +++ b/spec/models/conversation_mute_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe ConversationMute, type: :model do +RSpec.describe ConversationMute do end diff --git a/spec/models/conversation_spec.rb b/spec/models/conversation_spec.rb index 9d58ad0ac6c..c1d6659aa7b 100644 --- a/spec/models/conversation_spec.rb +++ b/spec/models/conversation_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Conversation, type: :model do +RSpec.describe Conversation do describe '#local?' do it 'returns true when URI is nil' do expect(Fabricate(:conversation).local?).to be true diff --git a/spec/models/custom_emoji_spec.rb b/spec/models/custom_emoji_spec.rb index a6e6cd7a58d..8a6487c3211 100644 --- a/spec/models/custom_emoji_spec.rb +++ b/spec/models/custom_emoji_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe CustomEmoji, type: :model do +RSpec.describe CustomEmoji do describe '#search' do subject { described_class.search(search_term) } diff --git a/spec/models/custom_filter_keyword_spec.rb b/spec/models/custom_filter_keyword_spec.rb index bbc4b9c2eed..09a36fa3ed3 100644 --- a/spec/models/custom_filter_keyword_spec.rb +++ b/spec/models/custom_filter_keyword_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe CustomFilterKeyword, type: :model do +RSpec.describe CustomFilterKeyword do end diff --git a/spec/models/custom_filter_spec.rb b/spec/models/custom_filter_spec.rb index d2bc090ab06..f5e9b7ea964 100644 --- a/spec/models/custom_filter_spec.rb +++ b/spec/models/custom_filter_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe CustomFilter, type: :model do +RSpec.describe CustomFilter do end diff --git a/spec/models/device_spec.rb b/spec/models/device_spec.rb index cb214b9cbc8..4e7b8f2e205 100644 --- a/spec/models/device_spec.rb +++ b/spec/models/device_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Device, type: :model do +RSpec.describe Device do end diff --git a/spec/models/domain_block_spec.rb b/spec/models/domain_block_spec.rb index 9839ee9d4e5..f10f4702794 100644 --- a/spec/models/domain_block_spec.rb +++ b/spec/models/domain_block_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe DomainBlock, type: :model do +RSpec.describe DomainBlock do describe 'validations' do it 'is invalid without a domain' do domain_block = Fabricate.build(:domain_block, domain: nil) diff --git a/spec/models/email_domain_block_spec.rb b/spec/models/email_domain_block_spec.rb index 1ae12b1ff87..a7232eb6b49 100644 --- a/spec/models/email_domain_block_spec.rb +++ b/spec/models/email_domain_block_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe EmailDomainBlock, type: :model do +RSpec.describe EmailDomainBlock do describe 'block?' do let(:input) { nil } diff --git a/spec/models/encrypted_message_spec.rb b/spec/models/encrypted_message_spec.rb index bf7a406ffdf..c38142be1eb 100644 --- a/spec/models/encrypted_message_spec.rb +++ b/spec/models/encrypted_message_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe EncryptedMessage, type: :model do +RSpec.describe EncryptedMessage do end diff --git a/spec/models/favourite_spec.rb b/spec/models/favourite_spec.rb index f7e2812a6c5..9e69570a01b 100644 --- a/spec/models/favourite_spec.rb +++ b/spec/models/favourite_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Favourite, type: :model do +RSpec.describe Favourite do let(:account) { Fabricate(:account) } context 'when status is a reblog' do diff --git a/spec/models/featured_tag_spec.rb b/spec/models/featured_tag_spec.rb index 4bf087c8288..58865f94a58 100644 --- a/spec/models/featured_tag_spec.rb +++ b/spec/models/featured_tag_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe FeaturedTag, type: :model do +RSpec.describe FeaturedTag do end diff --git a/spec/models/follow_recommendation_suppression_spec.rb b/spec/models/follow_recommendation_suppression_spec.rb index 4c1d8281b20..d437d170d36 100644 --- a/spec/models/follow_recommendation_suppression_spec.rb +++ b/spec/models/follow_recommendation_suppression_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe FollowRecommendationSuppression, type: :model do +RSpec.describe FollowRecommendationSuppression do end diff --git a/spec/models/follow_request_spec.rb b/spec/models/follow_request_spec.rb index 96d818913a1..e413747852f 100644 --- a/spec/models/follow_request_spec.rb +++ b/spec/models/follow_request_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe FollowRequest, type: :model do +RSpec.describe FollowRequest do describe '#authorize!' do let!(:follow_request) { Fabricate(:follow_request, account: account, target_account: target_account) } let(:account) { Fabricate(:account) } diff --git a/spec/models/follow_spec.rb b/spec/models/follow_spec.rb index a9a9af88ad0..79c0048f9f8 100644 --- a/spec/models/follow_spec.rb +++ b/spec/models/follow_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Follow, type: :model do +RSpec.describe Follow do let(:alice) { Fabricate(:account, username: 'alice') } let(:bob) { Fabricate(:account, username: 'bob') } diff --git a/spec/models/home_feed_spec.rb b/spec/models/home_feed_spec.rb index d7034f3f0b5..bd649d82693 100644 --- a/spec/models/home_feed_spec.rb +++ b/spec/models/home_feed_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe HomeFeed, type: :model do +RSpec.describe HomeFeed do subject { described_class.new(account) } let(:account) { Fabricate(:account) } diff --git a/spec/models/identity_spec.rb b/spec/models/identity_spec.rb index 6eab5a2e188..59155781c72 100644 --- a/spec/models/identity_spec.rb +++ b/spec/models/identity_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Identity, type: :model do +RSpec.describe Identity do describe '.find_for_oauth' do let(:auth) { Fabricate(:identity, user: Fabricate(:user)) } diff --git a/spec/models/import_spec.rb b/spec/models/import_spec.rb index 106af4e0f77..1dae40a739f 100644 --- a/spec/models/import_spec.rb +++ b/spec/models/import_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Import, type: :model do +RSpec.describe Import do let(:account) { Fabricate(:account) } let(:type) { 'following' } let(:data) { attachment_fixture('imports.txt') } diff --git a/spec/models/invite_spec.rb b/spec/models/invite_spec.rb index dac4b6431b4..4ad589f2c7a 100644 --- a/spec/models/invite_spec.rb +++ b/spec/models/invite_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Invite, type: :model do +RSpec.describe Invite do describe '#valid_for_use?' do it 'returns true when there are no limitations' do invite = Fabricate(:invite, max_uses: nil, expires_at: nil) diff --git a/spec/models/list_account_spec.rb b/spec/models/list_account_spec.rb index 8312defaca4..c9853d4a045 100644 --- a/spec/models/list_account_spec.rb +++ b/spec/models/list_account_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe ListAccount, type: :model do +RSpec.describe ListAccount do end diff --git a/spec/models/list_spec.rb b/spec/models/list_spec.rb index 8167f8a7ecb..621ad3968da 100644 --- a/spec/models/list_spec.rb +++ b/spec/models/list_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe List, type: :model do +RSpec.describe List do end diff --git a/spec/models/login_activity_spec.rb b/spec/models/login_activity_spec.rb index 1c3111a20d6..2214d3ef394 100644 --- a/spec/models/login_activity_spec.rb +++ b/spec/models/login_activity_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe LoginActivity, type: :model do +RSpec.describe LoginActivity do end diff --git a/spec/models/media_attachment_spec.rb b/spec/models/media_attachment_spec.rb index c590de9be7c..becc7482442 100644 --- a/spec/models/media_attachment_spec.rb +++ b/spec/models/media_attachment_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe MediaAttachment, type: :model do +RSpec.describe MediaAttachment do describe 'local?' do subject { media_attachment.local? } diff --git a/spec/models/mention_spec.rb b/spec/models/mention_spec.rb index 044bb80cf67..b241049a54b 100644 --- a/spec/models/mention_spec.rb +++ b/spec/models/mention_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Mention, type: :model do +RSpec.describe Mention do describe 'validations' do it 'is invalid without an account' do mention = Fabricate.build(:mention, account: nil) diff --git a/spec/models/mute_spec.rb b/spec/models/mute_spec.rb index 48b5a37ab9d..050083d0f81 100644 --- a/spec/models/mute_spec.rb +++ b/spec/models/mute_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Mute, type: :model do +RSpec.describe Mute do end diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 0c6af3eeede..795491546c6 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Notification, type: :model do +RSpec.describe Notification do describe '#target_status' do let(:notification) { Fabricate(:notification, activity: activity) } let(:status) { Fabricate(:status) } diff --git a/spec/models/poll_vote_spec.rb b/spec/models/poll_vote_spec.rb index 6886a82aa82..b017ea52799 100644 --- a/spec/models/poll_vote_spec.rb +++ b/spec/models/poll_vote_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe PollVote, type: :model do +RSpec.describe PollVote do describe '#object_type' do let(:poll_vote) { Fabricate.build(:poll_vote) } diff --git a/spec/models/preview_card_spec.rb b/spec/models/preview_card_spec.rb index 1858644c919..7d687d16ff7 100644 --- a/spec/models/preview_card_spec.rb +++ b/spec/models/preview_card_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe PreviewCard, type: :model do +RSpec.describe PreviewCard do end diff --git a/spec/models/preview_card_trend_spec.rb b/spec/models/preview_card_trend_spec.rb index 97ad05e7542..a31bf71cc0c 100644 --- a/spec/models/preview_card_trend_spec.rb +++ b/spec/models/preview_card_trend_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe PreviewCardTrend, type: :model do +RSpec.describe PreviewCardTrend do end diff --git a/spec/models/public_feed_spec.rb b/spec/models/public_feed_spec.rb index 5653aee1848..53e01cafd39 100644 --- a/spec/models/public_feed_spec.rb +++ b/spec/models/public_feed_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe PublicFeed, type: :model do +RSpec.describe PublicFeed do let(:account) { Fabricate(:account) } describe '#get' do diff --git a/spec/models/relay_spec.rb b/spec/models/relay_spec.rb index 86c1762c157..7ed49e73340 100644 --- a/spec/models/relay_spec.rb +++ b/spec/models/relay_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Relay, type: :model do +RSpec.describe Relay do end diff --git a/spec/models/scheduled_status_spec.rb b/spec/models/scheduled_status_spec.rb index 294fa9f36ce..286c17e6969 100644 --- a/spec/models/scheduled_status_spec.rb +++ b/spec/models/scheduled_status_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe ScheduledStatus, type: :model do +RSpec.describe ScheduledStatus do end diff --git a/spec/models/session_activation_spec.rb b/spec/models/session_activation_spec.rb index 96411c3594b..51c6aa5cb06 100644 --- a/spec/models/session_activation_spec.rb +++ b/spec/models/session_activation_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe SessionActivation, type: :model do +RSpec.describe SessionActivation do describe '#detection' do let(:session_activation) { Fabricate(:session_activation, user_agent: 'Chrome/62.0.3202.89') } diff --git a/spec/models/setting_spec.rb b/spec/models/setting_spec.rb index 9b4d98da557..accce10f86c 100644 --- a/spec/models/setting_spec.rb +++ b/spec/models/setting_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Setting, type: :model do +RSpec.describe Setting do describe '#to_param' do let(:setting) { Fabricate(:setting, var: var) } let(:var) { 'var' } diff --git a/spec/models/site_upload_spec.rb b/spec/models/site_upload_spec.rb index f7ea0692130..d4a92931156 100644 --- a/spec/models/site_upload_spec.rb +++ b/spec/models/site_upload_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe SiteUpload, type: :model do +RSpec.describe SiteUpload do describe '#cache_key' do let(:site_upload) { SiteUpload.new(var: 'var') } diff --git a/spec/models/status_pin_spec.rb b/spec/models/status_pin_spec.rb index c4ebf96da9f..52ce0847c41 100644 --- a/spec/models/status_pin_spec.rb +++ b/spec/models/status_pin_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe StatusPin, type: :model do +RSpec.describe StatusPin do describe 'validations' do it 'allows pins of own statuses' do account = Fabricate(:account) diff --git a/spec/models/status_spec.rb b/spec/models/status_spec.rb index 243d85c8478..84ff82c789e 100644 --- a/spec/models/status_spec.rb +++ b/spec/models/status_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Status, type: :model do +RSpec.describe Status do subject { Fabricate(:status, account: alice) } let(:alice) { Fabricate(:account, username: 'alice') } diff --git a/spec/models/status_stat_spec.rb b/spec/models/status_stat_spec.rb index 749ca097d6c..9679c836a7d 100644 --- a/spec/models/status_stat_spec.rb +++ b/spec/models/status_stat_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe StatusStat, type: :model do +RSpec.describe StatusStat do end diff --git a/spec/models/status_trend_spec.rb b/spec/models/status_trend_spec.rb index 9678b838a7e..dbb3d4bb3f7 100644 --- a/spec/models/status_trend_spec.rb +++ b/spec/models/status_trend_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe StatusTrend, type: :model do +RSpec.describe StatusTrend do end diff --git a/spec/models/system_key_spec.rb b/spec/models/system_key_spec.rb index a4e8b77844b..5bd630aaa51 100644 --- a/spec/models/system_key_spec.rb +++ b/spec/models/system_key_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe SystemKey, type: :model do +RSpec.describe SystemKey do end diff --git a/spec/models/tag_follow_spec.rb b/spec/models/tag_follow_spec.rb index 88409bb28ae..240147ecc88 100644 --- a/spec/models/tag_follow_spec.rb +++ b/spec/models/tag_follow_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe TagFollow, type: :model do +RSpec.describe TagFollow do end diff --git a/spec/models/unavailable_domain_spec.rb b/spec/models/unavailable_domain_spec.rb index 5469ff69399..b868779f2b2 100644 --- a/spec/models/unavailable_domain_spec.rb +++ b/spec/models/unavailable_domain_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe UnavailableDomain, type: :model do +RSpec.describe UnavailableDomain do end diff --git a/spec/models/user_invite_request_spec.rb b/spec/models/user_invite_request_spec.rb index 95e1284399a..ee0efbb4318 100644 --- a/spec/models/user_invite_request_spec.rb +++ b/spec/models/user_invite_request_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe UserInviteRequest, type: :model do +RSpec.describe UserInviteRequest do end diff --git a/spec/models/user_role_spec.rb b/spec/models/user_role_spec.rb index 97456c1060e..16bb4358e67 100644 --- a/spec/models/user_role_spec.rb +++ b/spec/models/user_role_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe UserRole, type: :model do +RSpec.describe UserRole do subject { described_class.create(name: 'Foo', position: 1) } describe '#can?' do diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index b7754e9265a..ae46f0ae45e 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' require 'devise_two_factor/spec_helpers' -RSpec.describe User, type: :model do +RSpec.describe User do let(:password) { 'abcd1234' } let(:account) { Fabricate(:account, username: 'alice') } diff --git a/spec/models/web/push_subscription_spec.rb b/spec/models/web/push_subscription_spec.rb index 0f9b3314022..3c2cd3bac1b 100644 --- a/spec/models/web/push_subscription_spec.rb +++ b/spec/models/web/push_subscription_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Web::PushSubscription, type: :model do +RSpec.describe Web::PushSubscription do subject { described_class.new(data: data) } let(:account) { Fabricate(:account) } diff --git a/spec/models/web/setting_spec.rb b/spec/models/web/setting_spec.rb index b7ff3c8684f..3182c67217b 100644 --- a/spec/models/web/setting_spec.rb +++ b/spec/models/web/setting_spec.rb @@ -2,5 +2,5 @@ require 'rails_helper' -RSpec.describe Web::Setting, type: :model do +RSpec.describe Web::Setting do end diff --git a/spec/models/webauthn_credentials_spec.rb b/spec/models/webauthn_credentials_spec.rb index 1a2a2f90996..4579ebb82e9 100644 --- a/spec/models/webauthn_credentials_spec.rb +++ b/spec/models/webauthn_credentials_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe WebauthnCredential, type: :model do +RSpec.describe WebauthnCredential do describe 'validations' do it 'is invalid without an external id' do webauthn_credential = Fabricate.build(:webauthn_credential, external_id: nil) diff --git a/spec/models/webhook_spec.rb b/spec/models/webhook_spec.rb index fcf3dd14fff..715dd7574ff 100644 --- a/spec/models/webhook_spec.rb +++ b/spec/models/webhook_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe Webhook, type: :model do +RSpec.describe Webhook do let(:webhook) { Fabricate(:webhook) } describe '#rotate_secret!' do