Commit 735146f3 authored by nicolasdular's avatar nicolasdular

Remove non-api tests from api spec

The removed tests are just aeftover.
The tests are already covered in the RegistrationController specs.
parent c47991bc
...@@ -30,6 +30,7 @@ describe RegistrationsController do ...@@ -30,6 +30,7 @@ describe RegistrationsController do
it 'renders new template and sets the resource variable' do it 'renders new template and sets the resource variable' do
expect(subject).to render_template(:new) expect(subject).to render_template(:new)
expect(response).to have_gitlab_http_status(200)
expect(assigns(:resource)).to be_a(User) expect(assigns(:resource)).to be_a(User)
end end
end end
...@@ -47,6 +48,7 @@ describe RegistrationsController do ...@@ -47,6 +48,7 @@ describe RegistrationsController do
it 'renders new template and sets the resource variable' do it 'renders new template and sets the resource variable' do
subject subject
expect(response).to have_gitlab_http_status(302)
expect(response).to redirect_to(new_user_session_path(anchor: 'register-pane')) expect(response).to redirect_to(new_user_session_path(anchor: 'register-pane'))
end end
end end
......
...@@ -633,32 +633,6 @@ describe API::Users do ...@@ -633,32 +633,6 @@ describe API::Users do
end end
end end
describe "GET /users/sign_up" do
context 'when experimental signup_flow is active' do
before do
stub_experiment_for_user(signup_flow: true)
end
it "shows sign up page" do
get "/users/sign_up"
expect(response).to have_gitlab_http_status(200)
expect(response).to render_template(:new)
end
end
context 'when experimental signup_flow is not active' do
before do
stub_experiment_for_user(signup_flow: false)
end
it "redirects to sign in page" do
get "/users/sign_up"
expect(response).to have_gitlab_http_status(302)
expect(response).to redirect_to(new_user_session_path(anchor: 'register-pane'))
end
end
end
describe "PUT /users/:id" do describe "PUT /users/:id" do
let!(:admin_user) { create(:admin) } let!(:admin_user) { create(:admin) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment