summaryrefslogtreecommitdiff
path: root/spec/controllers/registrations_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-31 21:08:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-31 21:08:05 +0000
commitabae8f34f377519946a91101ef7abf504454531c (patch)
tree359fab0082860b6850d4a0a492b8f12eb3d4eb0b /spec/controllers/registrations_controller_spec.rb
parent580622bdb3c762a8e89facd8a3946881ee480442 (diff)
downloadgitlab-ce-abae8f34f377519946a91101ef7abf504454531c.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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb
index d7fe3e87056..0b4ecb68cf7 100644
--- a/spec/controllers/registrations_controller_spec.rb
+++ b/spec/controllers/registrations_controller_spec.rb
@@ -334,7 +334,7 @@ describe RegistrationsController do
def expect_failure(message)
expect(flash[:alert]).to eq(message)
- expect(response.status).to eq(303)
+ expect(response).to have_gitlab_http_status(:see_other)
expect(response).to redirect_to profile_account_path
end
@@ -348,7 +348,7 @@ describe RegistrationsController do
def expect_success
expect(flash[:notice]).to eq s_('Profiles|Account scheduled for removal.')
- expect(response.status).to eq(303)
+ expect(response).to have_gitlab_http_status(:see_other)
expect(response).to redirect_to new_user_session_path
end