Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2064506c
Commit
2064506c
authored
Nov 01, 2021
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap contexts in .throttled? describe block
parent
e31ec46d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
spec/lib/gitlab/application_rate_limiter_spec.rb
spec/lib/gitlab/application_rate_limiter_spec.rb
+18
-16
No files found.
spec/lib/gitlab/application_rate_limiter_spec.rb
View file @
2064506c
...
...
@@ -49,6 +49,7 @@ RSpec.describe Gitlab::ApplicationRateLimiter do
end
end
describe
'.throttled?'
do
context
'when the key is an array of only ActiveRecord models'
do
let
(
:scope
)
{
[
user
,
project
]
}
...
...
@@ -71,8 +72,9 @@ RSpec.describe Gitlab::ApplicationRateLimiter do
it_behaves_like
'action rate limiter'
end
end
describe
'
#
log_request'
do
describe
'
.
log_request'
do
let
(
:file_path
)
{
'master/README.md'
}
let
(
:type
)
{
:raw_blob_request_limit
}
let
(
:fullpath
)
{
"/
#{
project
.
full_path
}
/raw/
#{
file_path
}
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment