mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 03:59:33 +02:00
Fix throttling condition
This commit is contained in:
parent
f17ef17d16
commit
16d4e4b4e6
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Shunter
|
||||||
around_action :throttle, only: actions
|
around_action :throttle, only: actions
|
||||||
|
|
||||||
def throttle
|
def throttle
|
||||||
unless throttled_user.present? && Shunter.feature_enabled?
|
if throttled_user.blank? || !Shunter.feature_enabled?
|
||||||
yield if block_given?
|
yield if block_given?
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,6 +18,7 @@ require 'capybara/minitest'
|
||||||
require 'webmock/minitest'
|
require 'webmock/minitest'
|
||||||
require 'support/assertions/epp_assertions'
|
require 'support/assertions/epp_assertions'
|
||||||
require 'sidekiq/testing'
|
require 'sidekiq/testing'
|
||||||
|
require 'spy/integration'
|
||||||
|
|
||||||
Sidekiq::Testing.fake!
|
Sidekiq::Testing.fake!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue