Commit 2bd78c22 authored by Arturo Herrero's avatar Arturo Herrero

Replace allow_any_instance_of with allow

parent 1aed2d55
...@@ -388,7 +388,7 @@ RSpec.describe Group do ...@@ -388,7 +388,7 @@ RSpec.describe Group do
let(:group) { build(:group) } let(:group) { build(:group) }
before do before do
allow_any_instance_of(ApplicationSetting).to receive(:repository_size_limit).and_return(50) # rubocop:disable RSpec/AnyInstanceOf allow(::Gitlab::CurrentSettings).to receive(:repository_size_limit).and_return(50)
end end
it 'returns the value set globally' do it 'returns the value set globally' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment