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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d9ebe0d2
Commit
d9ebe0d2
authored
Nov 17, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix kwargs deprecation warnings in session controller specs
parent
e7650bc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/spec/controllers/ee/admin/sessions_controller_spec.rb
ee/spec/controllers/ee/admin/sessions_controller_spec.rb
+1
-1
ee/spec/controllers/ee/sessions_controller_spec.rb
ee/spec/controllers/ee/sessions_controller_spec.rb
+1
-1
No files found.
ee/spec/controllers/ee/admin/sessions_controller_spec.rb
View file @
d9ebe0d2
...
...
@@ -7,7 +7,7 @@ RSpec.describe Admin::SessionsController, :do_not_mock_admin_mode do
describe
'#create'
do
context
'when using two-factor authentication'
do
def
authenticate_2fa
(
user_params
,
otp_user_id:
user
.
id
)
def
authenticate_2fa
(
otp_user_id:
user
.
id
,
**
user_params
)
post
(
:create
,
params:
{
user:
user_params
},
session:
{
otp_user_id:
otp_user_id
})
end
...
...
ee/spec/controllers/ee/sessions_controller_spec.rb
View file @
d9ebe0d2
...
...
@@ -90,7 +90,7 @@ RSpec.describe SessionsController, :geo do
end
context
'when using two-factor authentication'
do
def
authenticate_2fa
(
user_params
,
otp_user_id:
user
.
id
)
def
authenticate_2fa
(
otp_user_id:
user
.
id
,
**
user_params
)
post
(
:create
,
params:
{
user:
user_params
},
session:
{
otp_user_id:
otp_user_id
})
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