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
44924850
Commit
44924850
authored
Aug 31, 2021
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix offenses for RSpec/ContextWording in sentry errors request specs
parent
964390f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/requests/api/graphql/project/error_tracking/sentry_errors_request_spec.rb
...phql/project/error_tracking/sentry_errors_request_spec.rb
+8
-8
No files found.
spec/requests/api/graphql/project/error_tracking/sentry_errors_request_spec.rb
View file @
44924850
...
...
@@ -48,7 +48,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'reactive cache returns data'
do
context
'
when
reactive cache returns data'
do
before
do
allow_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:issue_details
)
...
...
@@ -72,7 +72,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'user does not have permission'
do
context
'
when
user does not have permission'
do
let
(
:current_user
)
{
create
(
:user
)
}
it
'is expected to return an empty error'
do
...
...
@@ -81,7 +81,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'sentry api returns an error'
do
context
'
when
sentry api returns an error'
do
before
do
expect_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:issue_details
)
...
...
@@ -140,7 +140,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'reactive cache returns data'
do
context
'
when
reactive cache returns data'
do
before
do
expect_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:list_sentry_issues
)
...
...
@@ -177,7 +177,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'sentry api itself errors out'
do
context
'
when
sentry api itself errors out'
do
before
do
expect_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:list_sentry_issues
)
...
...
@@ -223,7 +223,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'reactive cache returns data'
do
context
'
when
reactive cache returns data'
do
before
do
allow_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:issue_latest_event
)
...
...
@@ -234,7 +234,7 @@ RSpec.describe 'sentry errors requests' do
it_behaves_like
'setting stack trace error'
context
'user does not have permission'
do
context
'
when
user does not have permission'
do
let
(
:current_user
)
{
create
(
:user
)
}
it
'is expected to return an empty error'
do
...
...
@@ -243,7 +243,7 @@ RSpec.describe 'sentry errors requests' do
end
end
context
'sentry api returns an error'
do
context
'
when
sentry api returns an error'
do
before
do
expect_any_instance_of
(
ErrorTracking
::
ProjectErrorTrackingSetting
)
.
to
receive
(
:issue_latest_event
)
...
...
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