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
4b5a2f75
Commit
4b5a2f75
authored
May 02, 2021
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix naming in specs
parent
55c74619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb
.../controllers/groups/omniauth_callbacks_controller_spec.rb
+3
-3
ee/spec/features/groups/members/leave_group_spec.rb
ee/spec/features/groups/members/leave_group_spec.rb
+2
-2
No files found.
ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb
View file @
4b5a2f75
...
...
@@ -115,7 +115,7 @@ RSpec.describe Groups::OmniauthCallbacksController do
end
end
context
'when used to be a member of a group'
do
context
'when use
r use
d to be a member of a group'
do
before
do
user
.
provisioned_by_group
=
group
user
.
save!
...
...
@@ -148,11 +148,11 @@ RSpec.describe Groups::OmniauthCallbacksController do
expect
(
flash
[
:notice
]).
to
eq
(
'Login to a GitLab account to link with your SAML identity'
)
end
it
'
adds
linked identity'
do
it
'
does not add
linked identity'
do
expect
{
post
provider
,
params:
{
group_id:
group
}
}.
not_to
change
(
linked_accounts
,
:count
)
end
it
'
adds
group membership'
do
it
'
does not add
group membership'
do
expect
{
post
provider
,
params:
{
group_id:
group
}
}.
not_to
change
{
group
.
members
.
count
}
end
end
...
...
ee/spec/features/groups/members/leave_group_spec.rb
View file @
4b5a2f75
...
...
@@ -15,7 +15,7 @@ RSpec.describe 'Groups > Members > Leave group' do
end
context
'with block_password_auth_for_saml_users feature flag switched on'
do
it
'guest provisoned by this group leaves the group'
do
it
'guest provisoned by this group leaves the group
and is signed off
'
do
group
.
add_guest
(
user
)
group
.
add_owner
(
other_user
)
...
...
@@ -26,7 +26,7 @@ RSpec.describe 'Groups > Members > Leave group' do
expect
(
current_path
).
to
eq
(
new_user_session_path
)
end
it
'guest leaves the group by url param'
,
:js
do
it
'guest leaves the group by url param
and is signed off
'
,
:js
do
group
.
add_guest
(
user
)
group
.
add_owner
(
other_user
)
...
...
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