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
d26a8410
Commit
d26a8410
authored
Sep 02, 2021
by
Alejandro Guerrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for whitespace stripping
parent
e42872af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ee/spec/models/saml_group_link_spec.rb
ee/spec/models/saml_group_link_spec.rb
+8
-0
No files found.
ee/spec/models/saml_group_link_spec.rb
View file @
d26a8410
...
...
@@ -51,6 +51,14 @@ RSpec.describe SamlGroupLink do
end
end
describe
'#saml_group_name'
do
it
'strips whitespace from group name'
do
saml_group_link
=
described_class
.
new
(
saml_group_name:
' group '
)
saml_group_link
.
valid?
expect
(
saml_group_link
.
saml_group_name
)
to
eq
(
'group'
)
end
end
describe
'.by_saml_group_name'
do
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:group_link
)
{
create
(
:saml_group_link
,
group:
group
)
}
...
...
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