Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-10 21:17:55 +0300
committerFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 12:02:11 +0300
commit29521a313acc03eac0f81058a559fb4ca176f9e7 (patch)
tree6f382a2add4505bbe5864e5827aa01bc2e86d634 /spec/requests/rack_attack_global_spec.rb
parentf1896575237cb92dce5a413bb6b6cc6474cbb19d (diff)
Change the rss url guard clause
Diffstat (limited to 'spec/requests/rack_attack_global_spec.rb')
-rw-r--r--spec/requests/rack_attack_global_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/requests/rack_attack_global_spec.rb b/spec/requests/rack_attack_global_spec.rb
index 9cda4bcf966..0fec14d0cce 100644
--- a/spec/requests/rack_attack_global_spec.rb
+++ b/spec/requests/rack_attack_global_spec.rb
@@ -241,12 +241,10 @@ describe 'Rack Attack global throttles' do
let(:throttle_setting_prefix) { 'throttle_authenticated_web' }
context 'with the token in the query string' do
- context 'with the atom format in the Accept header' do
- let(:get_args) { [rss_url(user), nil, { 'HTTP_ACCEPT' => 'application/atom+xml' }] }
- let(:other_user_get_args) { [rss_url(other_user), nil, { 'HTTP_ACCEPT' => 'application/atom+xml' }] }
+ let(:get_args) { [rss_url(user), nil] }
+ let(:other_user_get_args) { [rss_url(other_user), nil] }
- it_behaves_like 'rate-limited token-authenticated requests'
- end
+ it_behaves_like 'rate-limited token-authenticated requests'
end
end