Commit 1c030867 authored by Sean Arnold's avatar Sean Arnold

Update spec to fix rubocop error

parent 1255a4dc
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment