Commit 41cb54cb authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Igor Drozdov

Fix duplicate spec in user helper specs

parent 766a8776
......@@ -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'
---
title: Fix duplicate spec from user helper spec
merge_request: 28854
author: Rajendra Kadam
type: added
......@@ -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
......
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