0
0
Fork 0

Fix RSpec/SubjectStub cop (#25550)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Matt Jankowski 2023-07-12 04:02:19 -04:00 committed by GitHub
parent 7824df0eca
commit 74806deb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View file

@ -14,7 +14,7 @@ RSpec.describe UnallowDomainService, type: :service do
context 'with limited federation mode' do
before do
allow(subject).to receive(:whitelist_mode?).and_return(true)
allow(Rails.configuration.x).to receive(:whitelist_mode).and_return(true)
end
describe '#call' do
@ -40,7 +40,7 @@ RSpec.describe UnallowDomainService, type: :service do
context 'without limited federation mode' do
before do
allow(subject).to receive(:whitelist_mode?).and_return(false)
allow(Rails.configuration.x).to receive(:whitelist_mode).and_return(false)
end
describe '#call' do