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
41cb54cb
Commit
41cb54cb
authored
Apr 06, 2020
by
Rajendra Kadam
Committed by
Igor Drozdov
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix duplicate spec in user helper specs
parent
766a8776
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/user-helpers-spec.yml
changelogs/unreleased/user-helpers-spec.yml
+5
-0
spec/helpers/users_helper_spec.rb
spec/helpers/users_helper_spec.rb
+2
-2
No files found.
.rubocop.yml
View file @
41cb54cb
...
...
@@ -391,6 +391,5 @@ RSpec/RepeatedExample:
-
'
spec/features/issues/filtered_search/filter_issues_spec.rb'
-
'
spec/features/merge_request/user_posts_diff_notes_spec.rb'
-
'
spec/features/projects/files/template_type_dropdown_spec.rb'
-
'
spec/helpers/users_helper_spec.rb'
-
'
spec/services/notification_service_spec.rb'
-
'
spec/services/web_hook_service_spec.rb'
changelogs/unreleased/user-helpers-spec.yml
0 → 100644
View file @
41cb54cb
---
title
:
Fix duplicate spec from user helper spec
merge_request
:
28854
author
:
Rajendra Kadam
type
:
added
spec/helpers/users_helper_spec.rb
View file @
41cb54cb
...
...
@@ -95,9 +95,9 @@ describe UsersHelper do
end
it
'includes the settings tab if the user can update themself'
do
expect
(
helper
).
to
receive
(
:can?
).
with
(
user
,
:
read
_user
,
user
)
{
true
}
expect
(
helper
).
to
receive
(
:can?
).
with
(
user
,
:
update
_user
,
user
)
{
true
}
expect
(
items
).
to
include
(
:
profile
)
expect
(
items
).
to
include
(
:
settings
)
end
context
'when terms are enforced'
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