Commit 954ad7e9 authored by Robert Speicher's avatar Robert Speicher Committed by Stan Hu

Merge branch '28857-followup-fix-pages-test' into 'master'

Fix a test that is going to break, that has not broken yet

See merge request gitlab-org/gitlab-ce!17966
parent 8a5b3f8d
...@@ -244,10 +244,11 @@ feature 'Pages' do ...@@ -244,10 +244,11 @@ feature 'Pages' do
end end
context 'setting could not be updated' do context 'setting could not be updated' do
let(:service) { instance_double('Projects::UpdateService') }
before do before do
allow_any_instance_of(Projects::UpdateService) allow(Projects::UpdateService).to receive(:new).and_return(service)
.to receive(:execute) allow(service).to receive(:execute).and_return(status: :error)
.and_return(status: :error)
end end
scenario 'tries to change the setting' do scenario 'tries to change the setting' 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