Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-12-21 15:29:27 +0300
committerJames Lopez <james@jameslopez.es>2016-12-21 15:29:27 +0300
commit4c3ec579e5660daab23d48bd4b3e21050735f726 (patch)
tree23722f566de4f61b48eb7436174bf6c37dd011e1 /spec/controllers/groups_controller_spec.rb
parentfd5062a848d63b89248c384e0171c6f1af833a49 (diff)
added more specs
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r--spec/controllers/groups_controller_spec.rb4
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