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'
describe Rack::Attack do

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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