diff options
author | James Lopez <james@jameslopez.es> | 2016-12-21 13:29:27 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-21 13:29:27 +0100 |
commit | 4c3ec579e5660daab23d48bd4b3e21050735f726 (patch) | |
tree | 23722f566de4f61b48eb7436174bf6c37dd011e1 /spec/controllers | |
parent | fd5062a848d63b89248c384e0171c6f1af833a49 (diff) | |
download | gitlab-ce-4c3ec579e5660daab23d48bd4b3e21050735f726.tar.gz |
added more specs
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 4bb37bc52ee..98dfb3e5216 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -122,8 +122,8 @@ describe GroupsController do allow_any_instance_of(Group).to receive(:move_dir).and_raise(Gitlab::UpdatePathError) post :update, id: group.to_param, group: { path: 'new_path' } - expect(response).to have_http_status(302) - expect(controller).to set_flash[:alert] + expect(assigns(:group).errors).not_to be_empty + expect(assigns(:group).path).not_to eq('new_path') end end end |