diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-05 15:56:28 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-05 15:56:28 +0100 |
commit | ab22caa97e4c1d749f1acfa344c0b1c91eba598b (patch) | |
tree | a29ac7ffa02e09d0d66695a057c7562d4588e0cc /spec/requests | |
parent | 56a456b43dba7d772db45e2b73aa18b5eab53d37 (diff) | |
download | gitlab-ce-ab22caa97e4c1d749f1acfa344c0b1c91eba598b.tar.gz |
Redirect signup page to signin page.
Resolves #1916.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/users_spec.rb | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb index dec488c6d00..12dfcacec23 100644 --- a/spec/requests/api/users_spec.rb +++ b/spec/requests/api/users_spec.rb @@ -184,27 +184,11 @@ describe API::API, api: true do end describe "GET /users/sign_up" do - context 'enabled' do - before do - ApplicationSetting.any_instance.stub(signup_enabled?: true) - end - - it "should return sign up page if signup is enabled" do - get "/users/sign_up" - response.status.should == 200 - end - end - context 'disabled' do - before do - ApplicationSetting.any_instance.stub(signup_enabled?: false) - end - - it "should redirect to sign in page if signup is disabled" do - get "/users/sign_up" - response.status.should == 302 - response.should redirect_to(new_user_session_path) - end + it "should redirect to sign in page" do + get "/users/sign_up" + response.status.should == 302 + response.should redirect_to(new_user_session_path) end end |