diff options
author | Nick Thomas <nick@gitlab.com> | 2018-03-23 16:26:17 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-23 16:26:17 +0000 |
commit | 1f04248cd8f12c84ec093095f79cf0715153c3e2 (patch) | |
tree | fc17480cdf4e4ab63cd5c3dbc89509f0f8c031a4 | |
parent | 757da4dd337278c4eba9d9820b1e11d1b3a2fd9d (diff) | |
download | gitlab-ce-1f04248cd8f12c84ec093095f79cf0715153c3e2.tar.gz |
Fix a spec that will break in EE
-rw-r--r-- | spec/features/projects/pages_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/projects/pages_spec.rb b/spec/features/projects/pages_spec.rb index 020738ae865..bdd49f731c7 100644 --- a/spec/features/projects/pages_spec.rb +++ b/spec/features/projects/pages_spec.rb @@ -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 |