Autofix Rubocop RSpec/LeadingSubject (#23670)
This commit is contained in:
@@ -121,6 +121,8 @@ RSpec.describe ActivityPub::Activity::Reject do
|
||||
end
|
||||
|
||||
context 'given a relay' do
|
||||
subject { described_class.new(json, sender) }
|
||||
|
||||
let!(:relay) { Fabricate(:relay, state: :pending, follow_activity_id: 'https://abc-123/456') }
|
||||
|
||||
let(:json) do
|
||||
@@ -138,8 +140,6 @@ RSpec.describe ActivityPub::Activity::Reject do
|
||||
}.with_indifferent_access
|
||||
end
|
||||
|
||||
subject { described_class.new(json, sender) }
|
||||
|
||||
it 'marks the relay as rejected' do
|
||||
subject.perform
|
||||
expect(relay.reload.rejected?).to be true
|
||||
|
Reference in New Issue
Block a user