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
810dfc21
Commit
810dfc21
authored
Apr 01, 2020
by
Rajendra Kadam
Committed by
Igor Drozdov
Apr 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor duplicate specs in ee user model specs
parent
5b8f8ce5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
.rubocop.yml
.rubocop.yml
+0
-1
ee/changelogs/unreleased/refactor-ee-user-specs.yml
ee/changelogs/unreleased/refactor-ee-user-specs.yml
+5
-0
ee/spec/models/user_spec.rb
ee/spec/models/user_spec.rb
+1
-1
No files found.
.rubocop.yml
View file @
810dfc21
...
@@ -422,7 +422,6 @@ RSpec/RepeatedExample:
...
@@ -422,7 +422,6 @@ RSpec/RepeatedExample:
-
'
spec/services/notification_service_spec.rb'
-
'
spec/services/notification_service_spec.rb'
-
'
spec/services/web_hook_service_spec.rb'
-
'
spec/services/web_hook_service_spec.rb'
-
'
ee/spec/models/group_spec.rb'
-
'
ee/spec/models/group_spec.rb'
-
'
ee/spec/models/user_spec.rb'
-
'
ee/spec/requests/api/merge_request_approvals_spec.rb'
-
'
ee/spec/requests/api/merge_request_approvals_spec.rb'
-
'
ee/spec/services/boards/lists/update_service_spec.rb'
-
'
ee/spec/services/boards/lists/update_service_spec.rb'
-
'
ee/spec/services/geo/repository_verification_primary_service_spec.rb'
-
'
ee/spec/services/geo/repository_verification_primary_service_spec.rb'
...
...
ee/changelogs/unreleased/refactor-ee-user-specs.yml
0 → 100644
View file @
810dfc21
---
title
:
Refactor duplicate specs in ee user model
merge_request
:
28513
author
:
Rajendra Kadam
type
:
added
ee/spec/models/user_spec.rb
View file @
810dfc21
...
@@ -165,7 +165,7 @@ describe User do
...
@@ -165,7 +165,7 @@ describe User do
end
end
it
"returns false for an auditor user if a license is not present"
do
it
"returns false for an auditor user if a license is not present"
do
stub_licensed_features
(
auditor_user:
false
)
allow
(
License
).
to
receive
(
:current
).
and_return
nil
expect
(
build
(
:user
,
:auditor
)).
not_to
be_auditor
expect
(
build
(
:user
,
:auditor
)).
not_to
be_auditor
end
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