Fix RSpec/SubjectDeclaration
cop (#25312)
This commit is contained in:
parent
f134a5f9d8
commit
c75df62ccc
21 changed files with 45 additions and 51 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue