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
This commit is contained in:
commit
93e216e6a5
1 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue