mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
Fix test naming error
This commit is contained in:
parent
2a58bf3849
commit
7a7cd6be08
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,9 @@ module Repp
|
||||||
class AccountsController < BaseController # rubocop:disable Metrics/ClassLength
|
class AccountsController < BaseController # rubocop:disable Metrics/ClassLength
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
||||||
THROTTLED_ACTIONS = %i[index balance details update_auto_reload_balance disable_auto_reload_balance switch_user update].freeze
|
THROTTLED_ACTIONS = %i[
|
||||||
|
index balance details update_auto_reload_balance disable_auto_reload_balance switch_user update
|
||||||
|
].freeze
|
||||||
include Shunter::Integration::Throttle
|
include Shunter::Integration::Throttle
|
||||||
|
|
||||||
api :get, '/repp/v1/accounts'
|
api :get, '/repp/v1/accounts'
|
||||||
|
|
|
@ -4,7 +4,7 @@ require "test_helper"
|
||||||
require "action_controller"
|
require "action_controller"
|
||||||
require "pry"
|
require "pry"
|
||||||
|
|
||||||
class BaseTest < Minitest::Test
|
class ShunterBaseTest < Minitest::Test
|
||||||
ENV["shunter_enabled"] = 'true'
|
ENV["shunter_enabled"] = 'true'
|
||||||
|
|
||||||
def test_throttling_works_on_inclusion
|
def test_throttling_works_on_inclusion
|
Loading…
Add table
Add a link
Reference in a new issue