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
126ebcfc
Commit
126ebcfc
authored
Apr 12, 2019
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RuboCop offenses
parent
bec87301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/models/user_spec.rb
ee/spec/models/user_spec.rb
+4
-4
No files found.
ee/spec/models/user_spec.rb
View file @
126ebcfc
...
...
@@ -522,18 +522,18 @@ describe User do
describe
'internal methods'
do
let!
(
:user
)
{
create
(
:user
)
}
let!
(
:ghost
)
{
User
.
ghost
}
let!
(
:support_bot
)
{
User
.
support_bot
}
let!
(
:ghost
)
{
described_class
.
ghost
}
let!
(
:support_bot
)
{
described_class
.
support_bot
}
let!
(
:non_internal
)
{
[
user
]
}
let!
(
:internal
)
{
[
ghost
,
support_bot
]
}
it
'returns non internal users'
do
expect
(
User
.
internal
).
to
eq
(
internal
)
expect
(
described_class
.
internal
).
to
eq
(
internal
)
expect
(
internal
.
all?
(
&
:internal?
)).
to
eq
(
true
)
end
it
'returns internal users'
do
expect
(
User
.
non_internal
).
to
eq
(
non_internal
)
expect
(
described_class
.
non_internal
).
to
eq
(
non_internal
)
expect
(
non_internal
.
all?
(
&
:internal?
)).
to
eq
(
false
)
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