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
Léo-Paul Géneau
gitlab-ce
Commits
07674964
Commit
07674964
authored
Sep 27, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shush rubocop.
parent
49688d39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/features/users_spec.rb
spec/features/users_spec.rb
+2
-2
No files found.
spec/features/users_spec.rb
View file @
07674964
...
@@ -65,13 +65,13 @@ feature 'Users', feature: true, js: true do
...
@@ -65,13 +65,13 @@ feature 'Users', feature: true, js: true do
@username_field
=
find
'#new_user_username'
@username_field
=
find
'#new_user_username'
end
end
scenario
'shows an error border if the username already exists'
,
focus:
true
do
scenario
'shows an error border if the username already exists'
do
fill_in
username_input
,
with:
user
.
username
fill_in
username_input
,
with:
user
.
username
wait_for_ajax
wait_for_ajax
expect
(
@username_form_group
).
to
have_css
'.gl-field-error-outline'
expect
(
@username_form_group
).
to
have_css
'.gl-field-error-outline'
end
end
scenario
'doesn\'t show an error border if the username is available'
,
focus:
true
do
scenario
'doesn\'t show an error border if the username is available'
do
fill_in
username_input
,
with:
'new-user'
fill_in
username_input
,
with:
'new-user'
wait_for_ajax
wait_for_ajax
expect
(
@username_field
).
not_to
have_css
'.gl-field-error-outline'
expect
(
@username_field
).
not_to
have_css
'.gl-field-error-outline'
...
...
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