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/features/users_spec.rb | |
parent | 56a456b43dba7d772db45e2b73aa18b5eab53d37 (diff) | |
download | gitlab-ce-ab22caa97e4c1d749f1acfa344c0b1c91eba598b.tar.gz |
Redirect signup page to signin page.
Resolves #1916.
Diffstat (limited to 'spec/features/users_spec.rb')
-rw-r--r-- | spec/features/users_spec.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index 8b237199bcc..21a3a4bf937 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -1,19 +1,14 @@ require 'spec_helper' describe 'Users', feature: true do - describe "GET /users/sign_up" do - before do - ApplicationSetting.any_instance.stub(signup_enabled?: true) - end - + describe "GET /users/sign_in" do it "should create a new user account" do - visit new_user_registration_path + visit new_user_session_path fill_in "user_name", with: "Name Surname" fill_in "user_username", with: "Great" fill_in "user_email", with: "name@mail.com" - fill_in "user_password", with: "password1234" - fill_in "user_password_confirmation", with: "password1234" - expect { click_button "Sign up" }.to change {User.count}.by(1) + fill_in "user_password_sign_up", with: "password1234" + expect { click_button "Sign up" }.to change { User.count }.by(1) end end end |