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
8f057a51
Commit
8f057a51
authored
Mar 07, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a spec that the ghost user cannot log in
parent
275a46c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/features/login_spec.rb
spec/features/login_spec.rb
+12
-0
No files found.
spec/features/login_spec.rb
View file @
8f057a51
...
...
@@ -48,6 +48,18 @@ feature 'Login', feature: true do
end
end
describe
'with the ghost user'
do
it
'disallows login'
do
login_with
(
User
.
ghost
)
expect
(
page
).
to
have_content
(
'Invalid Login or password.'
)
end
it
'does not update Devise trackable attributes'
do
expect
{
login_with
(
User
.
ghost
)
}.
not_to
change
{
User
.
ghost
.
reload
.
sign_in_count
}
end
end
describe
'with two-factor authentication'
do
def
enter_code
(
code
)
fill_in
'user_otp_attempt'
,
with:
code
...
...
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