summaryrefslogtreecommitdiff
path: root/spec/controllers/projects_controller_spec.rb
diff options
context:
space:
mode:
authorsandish chen <sandish.chen@huawei.com>2016-10-21 02:19:33 +0000
committerRémy Coutable <remy@rymai.me>2017-01-15 01:31:25 -0500
commit81f7a7ab62edf33234e7eb10834828ecd1793cb4 (patch)
treefdae74157827ef3b4572fcba0efbb018de0368d8 /spec/controllers/projects_controller_spec.rb
parent28f633a96a4b16f680dc345aa87fa7aa21c53481 (diff)
downloadgitlab-ce-81f7a7ab62edf33234e7eb10834828ecd1793cb4.tar.gz
Fix to display notice when project settings updated.
Change validity checking for UpdateService. Add return value for project update service. Return 302(redirect_to) when successfully updated. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/controllers/projects_controller_spec.rb')
-rw-r--r--spec/controllers/projects_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb
index 5ddcaa60dc6..d0a63aa9403 100644
--- a/spec/controllers/projects_controller_spec.rb
+++ b/spec/controllers/projects_controller_spec.rb
@@ -245,7 +245,7 @@ describe ProjectsController do
expect(project.repository.path).to include(new_path)
expect(assigns(:repository).path).to eq(project.repository.path)
- expect(response).to have_http_status(200)
+ expect(response).to have_http_status(302)
end
end