summaryrefslogtreecommitdiff
path: root/spec/helpers/routing
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-24 15:09:10 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-24 15:09:10 +0000
commit7173270eb496d0bec6759a22c4af7a4f37ca8dd7 (patch)
tree77352b169e2ea9ef67674dbc985fa8d1615b3227 /spec/helpers/routing
parent257b14287fcb649de8f0aa3736fd11165c5194ba (diff)
downloadgitlab-ce-7173270eb496d0bec6759a22c4af7a4f37ca8dd7.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/routing')
-rw-r--r--spec/helpers/routing/pseudonymization_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/routing/pseudonymization_helper_spec.rb b/spec/helpers/routing/pseudonymization_helper_spec.rb
index 1221917e6b7..cf716931fe2 100644
--- a/spec/helpers/routing/pseudonymization_helper_spec.rb
+++ b/spec/helpers/routing/pseudonymization_helper_spec.rb
@@ -180,7 +180,7 @@ RSpec.describe ::Routing::PseudonymizationHelper do
end
context 'when some query params are not required to be masked' do
- let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=all&state=masked_state" }
+ let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=all&state=masked_state&tab=2" }
let(:request) do
double(:Request,
path_parameters: {
@@ -189,11 +189,11 @@ RSpec.describe ::Routing::PseudonymizationHelper do
},
protocol: 'http',
host: 'localhost',
- query_string: 'author_username=root&scope=all&state=opened')
+ query_string: 'author_username=root&scope=all&state=opened&tab=2')
end
before do
- stub_const('Routing::PseudonymizationHelper::MaskHelper::QUERY_PARAMS_TO_NOT_MASK', %w[scope].freeze)
+ stub_const('Routing::PseudonymizationHelper::MaskHelper::QUERY_PARAMS_TO_NOT_MASK', %w[scope tab].freeze)
allow(helper).to receive(:request).and_return(request)
end