Commit 276eb73a authored by Rémy Coutable's avatar Rémy Coutable

Fix a Projects::UpdateService#execute spec

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 58198652
...@@ -156,13 +156,13 @@ describe Projects::UpdateService, '#execute', :services do ...@@ -156,13 +156,13 @@ describe Projects::UpdateService, '#execute', :services do
FileUtils.rm_rf('tmp/tests/storage_b') FileUtils.rm_rf('tmp/tests/storage_b')
end end
it 'calls the change repository storage method if the storage changed' do it 'calls the change repository storage method if the storage changed', skip_gitaly_mock: true do
expect(project).to receive(:change_repository_storage).with('b') expect(project).to receive(:change_repository_storage).with('b')
update_project(project, admin_user, opts).inspect update_project(project, admin_user, opts).inspect
end end
it "doesn't call the change repository storage for non-admin users" do it "doesn't call the change repository storage for non-admin users", skip_gitaly_mock: true do
expect(project).not_to receive(:change_repository_storage) expect(project).not_to receive(:change_repository_storage)
update_project(project, user, opts).inspect update_project(project, user, opts).inspect
......
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