diff options
Diffstat (limited to 'spec/services/groups/update_service_spec.rb')
-rw-r--r-- | spec/services/groups/update_service_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/services/groups/update_service_spec.rb b/spec/services/groups/update_service_spec.rb index 5e37f33e4f2..78deb3cf254 100644 --- a/spec/services/groups/update_service_spec.rb +++ b/spec/services/groups/update_service_spec.rb @@ -491,30 +491,6 @@ RSpec.describe Groups::UpdateService, feature_category: :groups_and_projects do it 'returns true' do expect(service.execute).to eq(true) end - - context 'error moving group' do - before do - allow(internal_group).to receive(:move_dir).and_raise(Gitlab::UpdatePathError) - end - - it 'does not raise an error' do - expect { service.execute }.not_to raise_error - end - - it 'returns false' do - expect(service.execute).to eq(false) - end - - it 'has the right error' do - service.execute - - expect(internal_group.errors.full_messages.first).to eq('Gitlab::UpdatePathError') - end - - it "hasn't changed the path" do - expect { service.execute }.not_to change { internal_group.reload.path } - end - end end context 'for a subgroup' do |