diff options
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 87a30ed1234..31257fd3a30 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -673,14 +673,6 @@ RSpec.describe GroupsController, factory_default: :keep, feature_category: :code expect(controller).to set_flash[:notice] end - it 'does not update the path on error' do - allow_any_instance_of(Group).to receive(:move_dir).and_raise(Gitlab::UpdatePathError) - post :update, params: { id: group.to_param, group: { path: 'new_path' } } - - expect(assigns(:group).errors).not_to be_empty - expect(assigns(:group).path).not_to eq('new_path') - end - it 'updates the project_creation_level successfully' do post :update, params: { id: group.to_param, group: { project_creation_level: ::Gitlab::Access::MAINTAINER_PROJECT_ACCESS } } |