summaryrefslogtreecommitdiff
path: root/spec/services/concerns/rate_limited_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/concerns/rate_limited_service_spec.rb')
-rw-r--r--spec/services/concerns/rate_limited_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/concerns/rate_limited_service_spec.rb b/spec/services/concerns/rate_limited_service_spec.rb
index 04007e8e75a..d913cd17067 100644
--- a/spec/services/concerns/rate_limited_service_spec.rb
+++ b/spec/services/concerns/rate_limited_service_spec.rb
@@ -4,7 +4,7 @@ require 'spec_helper'
RSpec.describe RateLimitedService do
let(:key) { :issues_create }
- let(:scope) { [:project, :current_user] }
+ let(:scope) { [:container, :current_user] }
let(:opts) { { scope: scope, users_allowlist: -> { [User.support_bot.username] } } }
let(:rate_limiter) { ::Gitlab::ApplicationRateLimiter }
@@ -39,7 +39,7 @@ RSpec.describe RateLimitedService do
let_it_be(:project) { create(:project) }
let_it_be(:current_user) { create(:user) }
- let(:service) { instance_double(Issues::CreateService, project: project, current_user: current_user) }
+ let(:service) { instance_double(Issues::CreateService, container: project, current_user: current_user) }
let(:evaluated_scope) { [project, current_user] }
let(:evaluated_opts) { { scope: evaluated_scope, users_allowlist: %w[support-bot] } }