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
Jérome Perrin
gitlab-ce
Commits
b46307d3
Commit
b46307d3
authored
Oct 13, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use member properties in users_spec, and remove loading ref.
parent
75962a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
spec/features/users_spec.rb
spec/features/users_spec.rb
+2
-5
No files found.
spec/features/users_spec.rb
View file @
b46307d3
...
@@ -61,20 +61,17 @@ feature 'Users', feature: true, js: true do
...
@@ -61,20 +61,17 @@ feature 'Users', feature: true, js: true do
before
(
:each
)
do
before
(
:each
)
do
visit
new_user_session_path
visit
new_user_session_path
click_link
'Register'
click_link
'Register'
@username_form_group
=
find
'.username'
@username_field
=
find
'#new_user_username'
end
end
scenario
'shows an error border if the username already exists'
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
(
find
(
'.username'
)
).
to
have_css
'.gl-field-error-outline'
end
end
scenario
'doesn\'t show an error border if the username is available'
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
(
find
(
'#new_user_username'
)
).
not_to
have_css
'.gl-field-error-outline'
end
end
end
end
...
...
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