Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b2232f74
Commit
b2232f74
authored
Sep 30, 2017
by
robdel12
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create failing test case
parent
6c33fb84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
spec/features/signup_spec.rb
spec/features/signup_spec.rb
+18
-0
No files found.
spec/features/signup_spec.rb
View file @
b2232f74
...
@@ -24,6 +24,24 @@ feature 'Signup' do
...
@@ -24,6 +24,24 @@ feature 'Signup' do
end
end
end
end
context
"when sigining up with different cased emails"
do
it
"creates the user successfully"
do
user
=
build
(
:user
)
visit
root_path
fill_in
'new_user_name'
,
with:
user
.
name
fill_in
'new_user_username'
,
with:
user
.
username
fill_in
'new_user_email'
,
with:
user
.
email
fill_in
'new_user_email_confirmation'
,
with:
user
.
email
.
capitalize
fill_in
'new_user_password'
,
with:
user
.
password
click_button
"Register"
expect
(
current_path
).
to
eq
dashboard_projects_path
expect
(
page
).
to
have_content
(
"Welcome! You have signed up successfully."
)
end
end
context
"when not sending confirmation email"
do
context
"when not sending confirmation email"
do
before
do
before
do
stub_application_setting
(
send_user_confirmation_email:
false
)
stub_application_setting
(
send_user_confirmation_email:
false
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment