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
1c030867
Commit
1c030867
authored
Dec 21, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update spec to fix rubocop error
parent
1255a4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
...ations/incident_management/oncall_rotation/create_spec.rb
+4
-3
No files found.
ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb
View file @
1c030867
...
@@ -46,9 +46,10 @@ RSpec.describe Mutations::IncidentManagement::OncallRotation::Create do
...
@@ -46,9 +46,10 @@ RSpec.describe Mutations::IncidentManagement::OncallRotation::Create do
context
'when OncallRotations::CreateService responds with an error'
do
context
'when OncallRotations::CreateService responds with an error'
do
before
do
before
do
allow_any_instance_of
(
::
IncidentManagement
::
OncallRotations
::
CreateService
)
allow_next_instance_of
(
::
IncidentManagement
::
OncallRotations
::
CreateService
)
do
|
service
|
.
to
receive
(
:execute
)
allow
(
service
).
to
receive
(
:execute
)
.
and_return
(
ServiceResponse
.
error
(
payload:
{
oncall_rotation:
nil
},
message:
'An on-call rotation already exists'
))
.
and_return
(
ServiceResponse
.
error
(
payload:
{
oncall_rotation:
nil
},
message:
'An on-call rotation already exists'
))
end
end
end
it
'returns errors'
do
it
'returns errors'
do
...
...
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