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
906779e6
Commit
906779e6
authored
Sep 22, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add url for spec verification
parent
4c20cd08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
spec/helpers/routing/pseudonymization_helper_spec.rb
spec/helpers/routing/pseudonymization_helper_spec.rb
+12
-3
No files found.
spec/helpers/routing/pseudonymization_helper_spec.rb
View file @
906779e6
...
...
@@ -130,13 +130,22 @@ RSpec.describe ::Routing::PseudonymizationHelper do
end
describe
'when it raises exception'
do
context
'calls error tracking exception'
do
it
'sends error to sentry'
do
context
'calls error tracking'
do
before
do
controller
.
request
.
path
=
'/dashboard/issues'
controller
.
request
.
query_string
=
'assignee_username=root'
allow
(
Rails
.
application
.
routes
).
to
receive
(
:recognize_path
).
and_return
({
controller:
'dashboard'
,
action:
'issues'
})
end
it
'sends error to sentry and returns nil'
do
allow
(
helper
).
to
receive
(
:mask_params
).
with
(
anything
).
and_raise
(
ActionController
::
RoutingError
,
'Some routing error'
)
expect
(
Gitlab
::
ErrorTracking
).
to
receive
(
:track_exception
).
with
(
ActionController
::
RoutingError
,
url:
''
).
and_call_original
url:
'
/dashboard/issues?assignee_username=root
'
).
and_call_original
expect
(
helper
.
masked_page_url
).
to
be_nil
end
...
...
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