diff options
author | Nick Thomas <nick@gitlab.com> | 2018-03-23 19:26:17 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-23 19:26:17 +0300 |
commit | 1f04248cd8f12c84ec093095f79cf0715153c3e2 (patch) | |
tree | fc17480cdf4e4ab63cd5c3dbc89509f0f8c031a4 /spec/features/projects | |
parent | 757da4dd337278c4eba9d9820b1e11d1b3a2fd9d (diff) |
Fix a spec that will break in EE
Diffstat (limited to 'spec/features/projects')
-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 |