summaryrefslogtreecommitdiff
path: root/spec/controllers/registrations_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 06:06:29 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 06:06:29 +0000
commit9b8d0d898eb2e1b698c93e468c8a9eb928d75d09 (patch)
tree2a583d4add97eb76aad9df2a9bfeec8553e3052e /spec/controllers/registrations_controller_spec.rb
parent56d96ad7fab4d4b95f5529d8080b3cc2873794a0 (diff)
downloadgitlab-ce-9b8d0d898eb2e1b698c93e468c8a9eb928d75d09.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/registrations_controller_spec.rb')
-rw-r--r--spec/controllers/registrations_controller_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb
index 8f147f949d0..8f260aa8b43 100644
--- a/spec/controllers/registrations_controller_spec.rb
+++ b/spec/controllers/registrations_controller_spec.rb
@@ -30,6 +30,7 @@ describe RegistrationsController do
it 'renders new template and sets the resource variable' do
expect(subject).to render_template(:new)
+ expect(response).to have_gitlab_http_status(200)
expect(assigns(:resource)).to be_a(User)
end
end
@@ -47,6 +48,7 @@ describe RegistrationsController do
it 'renders new template and sets the resource variable' do
subject
+ expect(response).to have_gitlab_http_status(302)
expect(response).to redirect_to(new_user_session_path(anchor: 'register-pane'))
end
end