Fix RSpec/SubjectDeclaration cop (#25312)

This commit is contained in:
Matt Jankowski 2023-07-12 03:49:33 -04:00 committed by GitHub
parent f134a5f9d8
commit c75df62ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 45 additions and 51 deletions

View file

@ -93,7 +93,7 @@ RSpec.describe UserRole do
describe '#computed_permissions' do
context 'when the role is nobody' do
let(:subject) { described_class.nobody }
subject { described_class.nobody }
it 'returns none' do
expect(subject.computed_permissions).to eq UserRole::Flags::NONE
@ -101,7 +101,7 @@ RSpec.describe UserRole do
end
context 'when the role is everyone' do
let(:subject) { described_class.everyone }
subject { described_class.everyone }
it 'returns permissions' do
expect(subject.computed_permissions).to eq subject.permissions