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 ActivityPub::DeviceSerializer do
RSpec.describe ActivityPub::DeviceSerializer do
let(:serialization) { serialized_record_json(record, described_class) }
let(:record) { Fabricate(:device) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ActivityPub::NoteSerializer do
RSpec.describe ActivityPub::NoteSerializer do
subject { serialized_record_json(parent, described_class, adapter: ActivityPub::Adapter) }
let!(:account) { Fabricate(:account) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ActivityPub::OneTimeKeySerializer do
RSpec.describe ActivityPub::OneTimeKeySerializer do
let(:serialization) { serialized_record_json(record, described_class) }
let(:record) { Fabricate(:one_time_key) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ActivityPub::UndoLikeSerializer do
RSpec.describe ActivityPub::UndoLikeSerializer do
let(:serialization) { serialized_record_json(record, described_class) }
let(:record) { Fabricate(:favourite) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ActivityPub::UpdatePollSerializer do
RSpec.describe ActivityPub::UpdatePollSerializer do
subject { serialized_record_json(status, described_class, adapter: ActivityPub::Adapter) }
let(:account) { Fabricate(:account) }

View file

@ -2,7 +2,7 @@
require 'rails_helper'
describe ActivityPub::VoteSerializer do
RSpec.describe ActivityPub::VoteSerializer do
let(:serialization) { serialized_record_json(record, described_class) }
let(:record) { Fabricate(:poll_vote) }