Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Style/FrozenStringLiteralComment for specs #23790

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions spec/config/initializers/rack_attack_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Rack::Attack do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/about_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe AboutController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe AccountsController, type: :controller do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ActivityPub::FollowersSynchronizationsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/activitypub/outboxes_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ActivityPub::OutboxesController, type: :controller do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::AccountModerationNotesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::AccountsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/change_email_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ChangeEmailsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/confirmations_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ConfirmationsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/custom_emojis_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::CustomEmojisController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/disputes/appeals_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::Disputes::AppealsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/domain_allows_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::DomainAllowsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/domain_blocks_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::DomainBlocksController, type: :controller do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ExportDomainAllowsController, type: :controller do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::ExportDomainBlocksController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/instances_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Admin::InstancesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/report_notes_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::ReportNotesController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/reports/actions_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::Reports::ActionsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/reports_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::ReportsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/resets_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::ResetsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/roles_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::RolesController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/statuses_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::StatusesController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/admin/users/roles_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Admin::Users::RolesController do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'
require 'webauthn/fake_client'

Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/oembed_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::OEmbedController, type: :controller do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::CredentialsController do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::FollowerAccountsController do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::FollowingAccountsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/accounts/lists_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::ListsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/accounts/notes_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::NotesController do
Expand Down
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Accounts::RelationshipsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/accounts/search_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::Accounts::SearchController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

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

require 'rails_helper'

RSpec.describe Api::V1::Admin::AccountActionsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/admin/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

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

require 'rails_helper'

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

require 'rails_helper'

RSpec.describe Api::V1::Admin::DomainBlocksController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/admin/reports_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::Admin::ReportsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/apps/credentials_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Apps::CredentialsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/apps_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::AppsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/blocks_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::BlocksController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/bookmarks_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::BookmarksController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/conversations_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::ConversationsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/domain_blocks_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

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

require 'rails_helper'

RSpec.describe Api::V1::Emails::ConfirmationsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/favourites_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::FavouritesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/filters_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::FiltersController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/follow_requests_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::FollowRequestsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/followed_tags_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::FollowedTagsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/lists/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Api::V1::Lists::AccountsController do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/lists_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::ListsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/markers_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::MarkersController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/media_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::MediaController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/mutes_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::MutesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/notifications_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::NotificationsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/polls/votes_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::Polls::VotesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/polls_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

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

require 'rails_helper'

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

require 'rails_helper'

RSpec.describe Api::V1::Statuses::RebloggedByAccountsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/statuses_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::StatusesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/suggestions_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::SuggestionsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v1/tags_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V1::TagsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v2/admin/accounts_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V2::Admin::AccountsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v2/filters/keywords_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V2::Filters::KeywordsController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v2/filters/statuses_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V2::Filters::StatusesController, type: :controller do
Expand Down
2 changes: 2 additions & 0 deletions spec/controllers/api/v2/filters_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Api::V2::FiltersController, type: :controller do
Expand Down