Commit a319cbb8 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'refactor-ee-user-specs' into 'master'

Refactor duplicate specs in ee user model specs

See merge request gitlab-org/gitlab!28513
parents d3ace711 810dfc21
......@@ -422,7 +422,6 @@ RSpec/RepeatedExample:
- 'spec/services/notification_service_spec.rb'
- 'spec/services/web_hook_service_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/services/boards/lists/update_service_spec.rb'
- 'ee/spec/services/geo/repository_verification_primary_service_spec.rb'
......
---
title: Refactor duplicate specs in ee user model
merge_request: 28513
author: Rajendra Kadam
type: added
......@@ -165,7 +165,7 @@ describe User do
end
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
end
......
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