Commit 2e3663f1 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Igor Drozdov

Remove duplicate spec in ability specs

parent ae92fe67
...@@ -405,7 +405,6 @@ RSpec/RepeatedExample: ...@@ -405,7 +405,6 @@ RSpec/RepeatedExample:
- 'spec/lib/gitlab/danger/changelog_spec.rb' - 'spec/lib/gitlab/danger/changelog_spec.rb'
- 'spec/lib/gitlab/git/blob_spec.rb' - 'spec/lib/gitlab/git/blob_spec.rb'
- 'spec/lib/gitlab/import_export/project/relation_factory_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/concerns/issuable_spec.rb'
- 'spec/models/project_services/chat_message/pipeline_message_spec.rb' - 'spec/models/project_services/chat_message/pipeline_message_spec.rb'
- 'spec/routing/admin_routing_spec.rb' - 'spec/routing/admin_routing_spec.rb'
......
---
title: Remove duplicate specs in ability model
merge_request: 28644
author: Rajendra Kadam
type: added
...@@ -137,12 +137,6 @@ describe Ability do ...@@ -137,12 +137,6 @@ describe Ability do
expect(users_for_snippet(snippet)).to match_array([author]) expect(users_for_snippet(snippet)).to match_array([author])
end 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 it 'public snippet is readable by all users' do
snippet = create(:personal_snippet, :public, author: author) snippet = create(:personal_snippet, :public, author: author)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment