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
2e3663f1
Commit
2e3663f1
authored
Apr 02, 2020
by
Rajendra Kadam
Committed by
Igor Drozdov
Apr 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate spec in ability specs
parent
ae92fe67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/refactor-ability-spec.yml
changelogs/unreleased/refactor-ability-spec.yml
+5
-0
spec/models/ability_spec.rb
spec/models/ability_spec.rb
+0
-6
No files found.
.rubocop.yml
View file @
2e3663f1
...
...
@@ -405,7 +405,6 @@ RSpec/RepeatedExample:
-
'
spec/lib/gitlab/danger/changelog_spec.rb'
-
'
spec/lib/gitlab/git/blob_spec.rb'
-
'
spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
-
'
spec/models/ability_spec.rb'
-
'
spec/models/concerns/issuable_spec.rb'
-
'
spec/models/project_services/chat_message/pipeline_message_spec.rb'
-
'
spec/routing/admin_routing_spec.rb'
...
...
changelogs/unreleased/refactor-ability-spec.yml
0 → 100644
View file @
2e3663f1
---
title
:
Remove duplicate specs in ability model
merge_request
:
28644
author
:
Rajendra Kadam
type
:
added
spec/models/ability_spec.rb
View file @
2e3663f1
...
...
@@ -137,12 +137,6 @@ describe Ability do
expect
(
users_for_snippet
(
snippet
)).
to
match_array
([
author
])
end
it
'internal snippet is readable by all registered users'
do
snippet
=
create
(
:personal_snippet
,
:public
,
author:
author
)
expect
(
users_for_snippet
(
snippet
)).
to
match_array
(
users
)
end
it
'public snippet is readable by all users'
do
snippet
=
create
(
:personal_snippet
,
:public
,
author:
author
)
...
...
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