diff options
Diffstat (limited to 'spec/lib/gitlab/rack_attack_spec.rb')
-rw-r--r-- | spec/lib/gitlab/rack_attack_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/rack_attack_spec.rb b/spec/lib/gitlab/rack_attack_spec.rb index 39ea02bad8b..7ba4eab50c7 100644 --- a/spec/lib/gitlab/rack_attack_spec.rb +++ b/spec/lib/gitlab/rack_attack_spec.rb @@ -27,7 +27,7 @@ RSpec.describe Gitlab::RackAttack, :aggregate_failures do end before do - allow(fake_rack_attack).to receive(:throttled_response=) + allow(fake_rack_attack).to receive(:throttled_responder=) allow(fake_rack_attack).to receive(:throttle) allow(fake_rack_attack).to receive(:track) allow(fake_rack_attack).to receive(:safelist) @@ -48,7 +48,7 @@ RSpec.describe Gitlab::RackAttack, :aggregate_failures do it 'configures the throttle response' do described_class.configure(fake_rack_attack) - expect(fake_rack_attack).to have_received(:throttled_response=).with(an_instance_of(Proc)) + expect(fake_rack_attack).to have_received(:throttled_responder=).with(an_instance_of(Proc)) end it 'configures the safelist' do |