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 }

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Fabricator(:account_migration) do
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
content 'MyText'
account nil

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
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
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
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
class UserMailerPreview < ActionMailer::Preview

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec::Matchers.define :match_json_schema do |schema|
match do |input_json|
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|
match do |record|
record.valid? if record.errors.empty?

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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