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
ff22dfbf
Commit
ff22dfbf
authored
Feb 07, 2019
by
Roger Rüttimann
Committed by
Roger Meier
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests for mysql db.
parent
34289f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/group_spec.rb
spec/models/group_spec.rb
+4
-4
No files found.
spec/models/group_spec.rb
View file @
ff22dfbf
...
...
@@ -625,7 +625,7 @@ describe Group do
group
.
update!
(
description:
'foobar'
)
end
def
expects_other_user_to_require_two_factors
def
expects_other_user_to_require_two_factors
(
expected_calls_mysql_db
=
1
)
calls
=
0
allow_any_instance_of
(
User
).
to
receive
(
:update_two_factor_requirement
)
do
calls
+=
1
...
...
@@ -636,7 +636,7 @@ describe Group do
if
Group
.
supports_nested_objects?
expect
(
calls
).
to
eq
2
else
expect
(
calls
).
to
eq
1
expect
(
calls
).
to
eq
expected_calls_mysql_db
end
end
...
...
@@ -644,7 +644,7 @@ describe Group do
other_user
=
create
(
:user
)
group
.
add_user
(
other_user
,
GroupMember
::
OWNER
)
expects_other_user_to_require_two_factors
expects_other_user_to_require_two_factors
(
2
)
end
it
'calls #update_two_factor_requirement on each subgroup member'
do
...
...
@@ -660,7 +660,7 @@ describe Group do
project_user
=
create
(
:user
)
project
.
add_developer
(
project_user
)
expects_other_user_to_require_two_factors
expects_other_user_to_require_two_factors
(
2
)
end
it
'calls #update_two_factor_requirement on each subgroups child project member'
do
...
...
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