diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 17:12:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 07:12:06 +0900 |
commit | 1a021011009607283cc8e602a8d0ebe3ecd73d92 (patch) | |
tree | 5f480bcd4261bce086300df85f107b7c2d01e445 /spec/config | |
parent | 3680e032b43e9701c0bc1f3ed5238e58cd6b7ac8 (diff) |
Autofix Rubocop Style/EmptyLambdaParameter (#23705)
Diffstat (limited to 'spec/config')
-rw-r--r-- | spec/config/initializers/rack_attack_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/config/initializers/rack_attack_spec.rb b/spec/config/initializers/rack_attack_spec.rb index 6d603caa9..50d4505b7 100644 --- a/spec/config/initializers/rack_attack_spec.rb +++ b/spec/config/initializers/rack_attack_spec.rb @@ -32,7 +32,7 @@ describe Rack::Attack do describe 'throttle excessive sign-up requests by IP address' do context 'through the website' do let(:limit) { 25 } - let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } } + let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } } context 'for exact path' do let(:path) { '/auth' } @@ -49,7 +49,7 @@ describe Rack::Attack do context 'through the API' do let(:limit) { 5 } - let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } } + let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } } context 'for exact path' do let(:path) { '/api/v1/accounts' } @@ -70,7 +70,7 @@ describe Rack::Attack do describe 'throttle excessive sign-in requests by IP address' do let(:limit) { 25 } - let(:request) { ->() { post path, {}, 'REMOTE_ADDR' => remote_ip } } + let(:request) { -> { post path, {}, 'REMOTE_ADDR' => remote_ip } } context 'for exact path' do let(:path) { '/auth/sign_in' } |