Enable Style/FrozenStringLiteralComment for specs (#23790)

This commit is contained in:
Nick Schonning 2023-02-21 19:55:31 -05:00 committed by GitHub
parent 0cfdd1a401
commit 84cc805cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
369 changed files with 738 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Rack::Attack do describe Rack::Attack do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe AboutController, type: :controller do RSpec.describe AboutController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe AccountsController, type: :controller do RSpec.describe AccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controller do RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::OutboxesController, type: :controller do RSpec.describe ActivityPub::OutboxesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::AccountModerationNotesController, type: :controller do RSpec.describe Admin::AccountModerationNotesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::AccountsController, type: :controller do RSpec.describe Admin::AccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::ChangeEmailsController, type: :controller do RSpec.describe Admin::ChangeEmailsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::ConfirmationsController, type: :controller do RSpec.describe Admin::ConfirmationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::CustomEmojisController do describe Admin::CustomEmojisController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::Disputes::AppealsController, type: :controller do RSpec.describe Admin::Disputes::AppealsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::DomainAllowsController, type: :controller do RSpec.describe Admin::DomainAllowsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::DomainBlocksController, type: :controller do RSpec.describe Admin::DomainBlocksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::ExportDomainAllowsController, type: :controller do RSpec.describe Admin::ExportDomainAllowsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::ExportDomainBlocksController, type: :controller do RSpec.describe Admin::ExportDomainBlocksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Admin::InstancesController, type: :controller do RSpec.describe Admin::InstancesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::ReportNotesController do describe Admin::ReportNotesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::Reports::ActionsController do describe Admin::Reports::ActionsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::ReportsController do describe Admin::ReportsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::ResetsController do describe Admin::ResetsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::RolesController do describe Admin::RolesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::StatusesController do describe Admin::StatusesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Admin::Users::RolesController do describe Admin::Users::RolesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
require 'webauthn/fake_client' require 'webauthn/fake_client'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::OEmbedController, type: :controller do RSpec.describe Api::OEmbedController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::CredentialsController do describe Api::V1::Accounts::CredentialsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::FollowerAccountsController do describe Api::V1::Accounts::FollowerAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::FollowingAccountsController do describe Api::V1::Accounts::FollowingAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::ListsController do describe Api::V1::Accounts::ListsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::NotesController do describe Api::V1::Accounts::NotesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Accounts::RelationshipsController do describe Api::V1::Accounts::RelationshipsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Accounts::SearchController, type: :controller do RSpec.describe Api::V1::Accounts::SearchController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::AccountsController, type: :controller do RSpec.describe Api::V1::AccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Admin::AccountActionsController, type: :controller do RSpec.describe Api::V1::Admin::AccountActionsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Admin::AccountsController, type: :controller do RSpec.describe Api::V1::Admin::AccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Admin::DomainAllowsController, type: :controller do RSpec.describe Api::V1::Admin::DomainAllowsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Admin::DomainBlocksController, type: :controller do RSpec.describe Api::V1::Admin::DomainBlocksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Admin::ReportsController, type: :controller do RSpec.describe Api::V1::Admin::ReportsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Apps::CredentialsController do describe Api::V1::Apps::CredentialsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::AppsController, type: :controller do RSpec.describe Api::V1::AppsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::BlocksController, type: :controller do RSpec.describe Api::V1::BlocksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::BookmarksController, type: :controller do RSpec.describe Api::V1::BookmarksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::ConversationsController, type: :controller do RSpec.describe Api::V1::ConversationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::DomainBlocksController, type: :controller do RSpec.describe Api::V1::DomainBlocksController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Emails::ConfirmationsController, type: :controller do RSpec.describe Api::V1::Emails::ConfirmationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::FavouritesController, type: :controller do RSpec.describe Api::V1::FavouritesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::FiltersController, type: :controller do RSpec.describe Api::V1::FiltersController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::FollowRequestsController, type: :controller do RSpec.describe Api::V1::FollowRequestsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::FollowedTagsController, type: :controller do RSpec.describe Api::V1::FollowedTagsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Api::V1::Lists::AccountsController do describe Api::V1::Lists::AccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::ListsController, type: :controller do RSpec.describe Api::V1::ListsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::MarkersController, type: :controller do RSpec.describe Api::V1::MarkersController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::MediaController, type: :controller do RSpec.describe Api::V1::MediaController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::MutesController, type: :controller do RSpec.describe Api::V1::MutesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::NotificationsController, type: :controller do RSpec.describe Api::V1::NotificationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Polls::VotesController, type: :controller do RSpec.describe Api::V1::Polls::VotesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::PollsController, type: :controller do RSpec.describe Api::V1::PollsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Statuses::FavouritedByAccountsController, type: :controller do RSpec.describe Api::V1::Statuses::FavouritedByAccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::Statuses::RebloggedByAccountsController, type: :controller do RSpec.describe Api::V1::Statuses::RebloggedByAccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::StatusesController, type: :controller do RSpec.describe Api::V1::StatusesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::SuggestionsController, type: :controller do RSpec.describe Api::V1::SuggestionsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V1::TagsController, type: :controller do RSpec.describe Api::V1::TagsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V2::Admin::AccountsController, type: :controller do RSpec.describe Api::V2::Admin::AccountsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V2::Filters::KeywordsController, type: :controller do RSpec.describe Api::V2::Filters::KeywordsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V2::Filters::StatusesController, type: :controller do RSpec.describe Api::V2::Filters::StatusesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Api::V2::FiltersController, type: :controller do RSpec.describe Api::V2::FiltersController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Auth::RegistrationsController, type: :controller do RSpec.describe Auth::RegistrationsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Disputes::AppealsController, type: :controller do RSpec.describe Disputes::AppealsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Disputes::StrikesController, type: :controller do RSpec.describe Disputes::StrikesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe EmojisController do describe EmojisController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe FollowerAccountsController do describe FollowerAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe FollowingAccountsController do describe FollowingAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe HomeController, type: :controller do RSpec.describe HomeController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe InstanceActorsController, type: :controller do RSpec.describe InstanceActorsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe IntentsController, type: :controller do RSpec.describe IntentsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe InvitesController do describe InvitesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe ManifestsController do describe ManifestsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe RelationshipsController do describe RelationshipsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::ApplicationsController do describe Settings::ApplicationsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::DeletesController do describe Settings::DeletesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Exports::BlockedAccountsController do describe Settings::Exports::BlockedAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Exports::BookmarksController do describe Settings::Exports::BookmarksController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Exports::FollowingAccountsController do describe Settings::Exports::FollowingAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Exports::MutedAccountsController do describe Settings::Exports::MutedAccountsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::FeaturedTagsController do describe Settings::FeaturedTagsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Settings::ImportsController, type: :controller do RSpec.describe Settings::ImportsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::MigrationsController do describe Settings::MigrationsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Preferences::NotificationsController do describe Settings::Preferences::NotificationsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::Preferences::OtherController do describe Settings::Preferences::OtherController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Settings::ProfilesController, type: :controller do RSpec.describe Settings::ProfilesController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe Settings::SessionsController do describe Settings::SessionsController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe SharesController do describe SharesController do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe StatusesCleanupController, type: :controller do RSpec.describe StatusesCleanupController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe TagsController, type: :controller do RSpec.describe TagsController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe WellKnown::HostMetaController, type: :controller do describe WellKnown::HostMetaController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe WellKnown::NodeInfoController, type: :controller do describe WellKnown::NodeInfoController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe WellKnown::WebfingerController, type: :controller do describe WellKnown::WebfingerController, type: :controller do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator :access_grant, from: 'Doorkeeper::AccessGrant' do Fabricator :access_grant, from: 'Doorkeeper::AccessGrant' do
application application
resource_owner_id { Fabricate(:user).id } resource_owner_id { Fabricate(:user).id }

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator :access_token, from: 'Doorkeeper::AccessToken' do Fabricator :access_token, from: 'Doorkeeper::AccessToken' do
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator :accessible_access_token, from: :access_token do Fabricator :accessible_access_token, from: :access_token do
expires_in { nil } expires_in { nil }
revoked_at { nil } revoked_at { nil }

Some files were not shown because too many files have changed in this diff Show More