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 }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_alias) do Fabricator(:account_alias) do
account account
acct 'test@example.com' acct 'test@example.com'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_deletion_request) do Fabricator(:account_deletion_request) do
account account
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_domain_block) do Fabricator(:account_domain_block) do
account account
domain 'example.com' domain 'example.com'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
keypair = OpenSSL::PKey::RSA.new(2048) keypair = OpenSSL::PKey::RSA.new(2048)
public_key = keypair.public_key.to_pem public_key = keypair.public_key.to_pem
private_key = keypair.to_pem private_key = keypair.to_pem

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_migration) do Fabricator(:account_migration) do
account account
target_account { |attrs| Fabricate(:account, also_known_as: [ActivityPub::TagManager.instance.uri_for(attrs[:account])]) } target_account { |attrs| Fabricate(:account, also_known_as: [ActivityPub::TagManager.instance.uri_for(attrs[:account])]) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_moderation_note) do Fabricator(:account_moderation_note) do
content 'MyText' content 'MyText'
account nil account nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_note) do Fabricator(:account_note) do
account account
target_account { Fabricate(:account) } target_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_pin) do Fabricator(:account_pin) do
account nil account nil
target_account nil target_account nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_stat) do Fabricator(:account_stat) do
account nil account nil
statuses_count '' statuses_count ''

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_statuses_cleanup_policy) do Fabricator(:account_statuses_cleanup_policy) do
account account
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_tag_stat) do Fabricator(:account_tag_stat) do
accounts_count '' accounts_count ''
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_warning) do Fabricator(:account_warning) do
account account
target_account(fabricator: :account) target_account(fabricator: :account)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_warning_preset) do Fabricator(:account_warning_preset) do
text 'MyText' text 'MyText'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator('Admin::ActionLog') do Fabricator('Admin::ActionLog') do
account nil account nil
action 'MyString' action 'MyString'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:announcement) do Fabricator(:announcement) do
text { Faker::Lorem.paragraph(sentence_count: 2) } text { Faker::Lorem.paragraph(sentence_count: 2) }
published true published true

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:announcement_mute) do Fabricator(:announcement_mute) do
account account
announcement announcement

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:announcement_reaction) do Fabricator(:announcement_reaction) do
account account
announcement announcement

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:appeal) do Fabricator(:appeal) do
strike(fabricator: :account_warning) strike(fabricator: :account_warning)
account { |attrs| attrs[:strike].target_account } account { |attrs| attrs[:strike].target_account }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:application, from: Doorkeeper::Application) do Fabricator(:application, from: Doorkeeper::Application) do
name 'Example' name 'Example'
website 'http://example.com' website 'http://example.com'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:backup) do Fabricator(:backup) do
user user
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:block) do Fabricator(:block) do
account account
target_account { Fabricate(:account) } target_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:bookmark) do Fabricator(:bookmark) do
account account
status status

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:canonical_email_block) do Fabricator(:canonical_email_block) do
email 'test@example.com' email 'test@example.com'
reference_account { Fabricate(:account) } reference_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:conversation_account) do Fabricator(:conversation_account) do
account nil account nil
conversation nil conversation nil

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator(:conversation) do Fabricator(:conversation) do
end end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator(:conversation_mute) do Fabricator(:conversation_mute) do
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:custom_emoji_category) do Fabricator(:custom_emoji_category) do
name 'MyString' name 'MyString'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:custom_emoji) do Fabricator(:custom_emoji) do
shortcode 'coolcat' shortcode 'coolcat'
domain nil domain nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:custom_filter) do Fabricator(:custom_filter) do
account account
expires_at nil expires_at nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:custom_filter_keyword) do Fabricator(:custom_filter_keyword) do
custom_filter custom_filter
keyword 'discourse' keyword 'discourse'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:custom_filter_status) do Fabricator(:custom_filter_status) do
custom_filter custom_filter
status status

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:device) do Fabricator(:device) do
access_token access_token
account account

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:domain_allow) do Fabricator(:domain_allow) do
domain 'MyString' domain 'MyString'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:domain_block) do Fabricator(:domain_block) do
domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } } domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } }
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:email_domain_block) do Fabricator(:email_domain_block) do
domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } } domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } }
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:encrypted_message) do Fabricator(:encrypted_message) do
device device
from_account from_account

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:favourite) do Fabricator(:favourite) do
account account
status status

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:featured_tag) do Fabricator(:featured_tag) do
account account
tag tag

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:follow) do Fabricator(:follow) do
account account
target_account { Fabricate(:account) } target_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:follow_recommendation_suppression) do Fabricator(:follow_recommendation_suppression) do
account account
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:follow_request) do Fabricator(:follow_request) do
account account
target_account { Fabricate(:account, locked: true) } target_account { Fabricate(:account, locked: true) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:identity) do Fabricator(:identity) do
user nil user nil
provider 'MyString' provider 'MyString'

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator(:import) do Fabricator(:import) do
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:invite) do Fabricator(:invite) do
user user
expires_at nil expires_at nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:ip_block) do Fabricator(:ip_block) do
ip '' ip ''
severity '' severity ''

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:list_account) do Fabricator(:list_account) do
list nil list nil
account nil account nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:list) do Fabricator(:list) do
account account
title 'MyString' title 'MyString'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:login_activity) do Fabricator(:login_activity) do
user user
authentication_method 'password' authentication_method 'password'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:marker) do Fabricator(:marker) do
user user
timeline 'home' timeline 'home'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:media_attachment) do Fabricator(:media_attachment) do
account account

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:mention) do Fabricator(:mention) do
account account
status status

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:mute) do Fabricator(:mute) do
account account
target_account { Fabricate(:account) } target_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:notification) do Fabricator(:notification) do
activity fabricator: [:mention, :status, :follow, :follow_request, :favourite].sample activity fabricator: [:mention, :status, :follow, :follow_request, :favourite].sample
account account

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:one_time_key) do Fabricator(:one_time_key) do
device device
key_id { Faker::Alphanumeric.alphanumeric(number: 10) } key_id { Faker::Alphanumeric.alphanumeric(number: 10) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:poll) do Fabricator(:poll) do
account account
status status

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:poll_vote) do Fabricator(:poll_vote) do
account account
poll poll

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:preview_card) do Fabricator(:preview_card) do
url { Faker::Internet.url } url { Faker::Internet.url }
title { Faker::Lorem.sentence } title { Faker::Lorem.sentence }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:relay) do Fabricator(:relay) do
inbox_url 'https://example.com/inbox' inbox_url 'https://example.com/inbox'
state :idle state :idle

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:report) do Fabricator(:report) do
account account
target_account { Fabricate(:account) } target_account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:report_note) do Fabricator(:report_note) do
report report
account { Fabricate(:account) } account { Fabricate(:account) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:rule) do Fabricator(:rule) do
priority 0 priority 0
deleted_at nil deleted_at nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:scheduled_status) do Fabricator(:scheduled_status) do
account account
scheduled_at { 20.hours.from_now } scheduled_at { 20.hours.from_now }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:session_activation) do Fabricator(:session_activation) do
user user
session_id 'MyString' session_id 'MyString'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:site_upload) do Fabricator(:site_upload) do
file { File.open(File.join(Rails.root, 'spec', 'fabricators', 'assets', 'utah_teapot.png')) } file { File.open(File.join(Rails.root, 'spec', 'fabricators', 'assets', 'utah_teapot.png')) }
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:status_edit) do Fabricator(:status_edit) do
status nil status nil
account nil account nil

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:status) do Fabricator(:status) do
account account
text 'Lorem ipsum dolor sit amet' text 'Lorem ipsum dolor sit amet'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:status_pin) do Fabricator(:status_pin) do
account account
status { |attrs| Fabricate(:status, account: attrs[:account], visibility: :public) } status { |attrs| Fabricate(:status, account: attrs[:account], visibility: :public) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:status_stat) do Fabricator(:status_stat) do
status_id nil status_id nil
replies_count '' replies_count ''

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator(:system_key) do Fabricator(:system_key) do
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:tag) do Fabricator(:tag) do
name { sequence(:hashtag) { |i| "#{Faker::Lorem.word}#{i}" } } name { sequence(:hashtag) { |i| "#{Faker::Lorem.word}#{i}" } }
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:tag_follow) do Fabricator(:tag_follow) do
tag tag
account account

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:unavailable_domain) do Fabricator(:unavailable_domain) do
domain { Faker::Internet.domain } domain { Faker::Internet.domain }
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:user) do Fabricator(:user) do
account { Fabricate.build(:account, user: nil) } account { Fabricate.build(:account, user: nil) }
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } } email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:user_invite_request) do Fabricator(:user_invite_request) do
user user
text { Faker::Lorem.sentence } text { Faker::Lorem.sentence }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:user_role) do Fabricator(:user_role) do
name 'MyString' name 'MyString'
color '' color ''

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:web_push_subscription, from: Web::PushSubscription) do Fabricator(:web_push_subscription, from: Web::PushSubscription) do
endpoint Faker::Internet.url endpoint Faker::Internet.url
key_p256dh Faker::Internet.password key_p256dh Faker::Internet.password

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
Fabricator(:web_setting, from: Web::Setting) do Fabricator(:web_setting, from: Web::Setting) do
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:webauthn_credential) do Fabricator(:webauthn_credential) do
user_id { Fabricate(:user).id } user_id { Fabricate(:user).id }
external_id { Base64.urlsafe_encode64(SecureRandom.random_bytes(16)) } external_id { Base64.urlsafe_encode64(SecureRandom.random_bytes(16)) }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:webhook) do Fabricator(:webhook) do
url { Faker::Internet.url } url { Faker::Internet.url }
secret { SecureRandom.hex } secret { SecureRandom.hex }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Accept do RSpec.describe ActivityPub::Activity::Accept do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Add do RSpec.describe ActivityPub::Activity::Add do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Announce do RSpec.describe ActivityPub::Activity::Announce do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Block do RSpec.describe ActivityPub::Activity::Block do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Create do RSpec.describe ActivityPub::Activity::Create do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Delete do RSpec.describe ActivityPub::Activity::Delete do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Flag do RSpec.describe ActivityPub::Activity::Flag do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Follow do RSpec.describe ActivityPub::Activity::Follow do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Like do RSpec.describe ActivityPub::Activity::Like do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Move do RSpec.describe ActivityPub::Activity::Move do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Reject do RSpec.describe ActivityPub::Activity::Reject do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Remove do RSpec.describe ActivityPub::Activity::Remove do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Undo do RSpec.describe ActivityPub::Activity::Undo do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe ActivityPub::Activity::Update do RSpec.describe ActivityPub::Activity::Update do

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::AccessTokensVacuum do RSpec.describe Vacuum::AccessTokensVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::BackupsVacuum do RSpec.describe Vacuum::BackupsVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::FeedsVacuum do RSpec.describe Vacuum::FeedsVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::MediaAttachmentsVacuum do RSpec.describe Vacuum::MediaAttachmentsVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::PreviewCardsVacuum do RSpec.describe Vacuum::PreviewCardsVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::StatusesVacuum do RSpec.describe Vacuum::StatusesVacuum do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Vacuum::SystemKeysVacuum do RSpec.describe Vacuum::SystemKeysVacuum do

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/admin_mailer # Preview all emails at http://localhost:3000/rails/mailers/admin_mailer
class AdminMailerPreview < ActionMailer::Preview class AdminMailerPreview < ActionMailer::Preview

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/notification_mailer # Preview all emails at http://localhost:3000/rails/mailers/notification_mailer
class NotificationMailerPreview < ActionMailer::Preview class NotificationMailerPreview < ActionMailer::Preview

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer # Preview all emails at http://localhost:3000/rails/mailers/user_mailer
class UserMailerPreview < ActionMailer::Preview class UserMailerPreview < ActionMailer::Preview

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Account::Field, type: :model do RSpec.describe Account::Field, type: :model do

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Trends::Statuses do RSpec.describe Trends::Statuses do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Trends::Tags do RSpec.describe Trends::Tags do

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
require 'devise_two_factor/spec_helpers' require 'devise_two_factor/spec_helpers'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Web::PushSubscription, type: :model do RSpec.describe Web::PushSubscription, type: :model do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
RSpec.describe Web::Setting, type: :model do RSpec.describe Web::Setting, type: :model do

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../config/environment', __dir__) require File.expand_path('../config/environment', __dir__)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe 'The catch all route' do describe 'The catch all route' do

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
describe 'Routes under accounts/' do describe 'Routes under accounts/' do

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper' require 'rails_helper'
def poll_option_json(name, votes) def poll_option_json(name, votes)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
GC.disable GC.disable
if ENV['DISABLE_SIMPLECOV'] != 'true' if ENV['DISABLE_SIMPLECOV'] != 'true'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec::Matchers.define :match_json_schema do |schema| RSpec::Matchers.define :match_json_schema do |schema|
match do |input_json| match do |input_json|
schema_path = Rails.root.join('spec', 'support', 'schema', "#{schema}.json").to_s schema_path = Rails.root.join('spec', 'support', 'schema', "#{schema}.json").to_s

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec::Matchers.define :model_have_error_on_field do |expected| RSpec::Matchers.define :model_have_error_on_field do |expected|
match do |record| match do |record|
record.valid? if record.errors.empty? record.valid? if record.errors.empty?

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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