Skip to content
Snippets Groups Projects
Verified Commit 1f04248c authored by Nick Thomas's avatar Nick Thomas
Browse files

Fix a spec that will break in EE

parent 757da4dd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -244,10 +244,11 @@ feature 'Pages' do
end
 
context 'setting could not be updated' do
let(:service) { instance_double('Projects::UpdateService') }
before do
allow_any_instance_of(Projects::UpdateService)
.to receive(:execute)
.and_return(status: :error)
allow(Projects::UpdateService).to receive(:new).and_return(service)
allow(service).to receive(:execute).and_return(status: :error)
end
 
scenario 'tries to change the setting' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment