Enable "zero monkey patching" mode in RSpec (#31614)

This commit is contained in:
Matt Jankowski 2024-09-04 01:12:25 -04:00 committed by GitHub
parent c9ea91f868
commit f1003b2560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
439 changed files with 441 additions and 439 deletions

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe AccountSearchService do
RSpec.describe AccountSearchService do
describe '#call' do
context 'with a query to ignore' do
it 'returns empty array for missing query' do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe AccountStatusesCleanupService do
RSpec.describe AccountStatusesCleanupService do
let(:account) { Fabricate(:account, username: 'alice', domain: nil) }
let(:account_policy) { Fabricate(:account_statuses_cleanup_policy, account: account) }
let!(:unrelated_status) { Fabricate(:status, created_at: 3.years.ago) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe FetchOEmbedService do
RSpec.describe FetchOEmbedService do
subject { described_class.new }
before do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ResolveURLService do
RSpec.describe ResolveURLService do
subject { described_class.new }
describe '#call' do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe SearchService do
RSpec.describe SearchService do
subject { described_class.new }
describe '#call' do

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe UnblockDomainService do
RSpec.describe UnblockDomainService do
subject { described_class.new }
describe 'call' do