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
7e0507dc
Commit
7e0507dc
authored
Feb 21, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make fixtures/u2f.rb deterministic
parent
dc9366dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/javascripts/fixtures/u2f.rb
spec/javascripts/fixtures/u2f.rb
+2
-1
No files found.
spec/javascripts/fixtures/u2f.rb
View file @
7e0507dc
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
context
'U2F'
do
include
JavaScriptFixturesHelpers
let
(
:user
)
{
create
(
:user
,
:two_factor_via_u2f
)
}
let
(
:user
)
{
create
(
:user
,
:two_factor_via_u2f
,
otp_secret:
'otpsecret:coolkids'
)
}
before
(
:all
)
do
clean_frontend_fixtures
(
'u2f/'
)
...
...
@@ -33,6 +33,7 @@ context 'U2F' do
before
do
sign_in
(
user
)
allow_any_instance_of
(
Profiles
::
TwoFactorAuthsController
).
to
receive
(
:build_qr_code
).
and_return
(
'qrcode:blackandwhitesquares'
)
end
it
'u2f/register.html.raw'
do
|
example
|
...
...
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