Fix RSpec/SubjectStub
cop (#25550)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
7824df0eca
commit
74806deb2c
3 changed files with 9 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue