Autofix Rubocop RSpec/ClassCheck (#23685)
This commit is contained in:
parent
634368c491
commit
54318dcd6d
8 changed files with 32 additions and 46 deletions
|
@ -127,7 +127,7 @@ RSpec.describe UserRole, type: :model do
|
|||
subject { described_class.everyone }
|
||||
|
||||
it 'returns a role' do
|
||||
expect(subject).to be_kind_of(described_class)
|
||||
expect(subject).to be_a(described_class)
|
||||
end
|
||||
|
||||
it 'is identified as the everyone role' do
|
||||
|
@ -147,7 +147,7 @@ RSpec.describe UserRole, type: :model do
|
|||
subject { described_class.nobody }
|
||||
|
||||
it 'returns a role' do
|
||||
expect(subject).to be_kind_of(described_class)
|
||||
expect(subject).to be_a(described_class)
|
||||
end
|
||||
|
||||
it 'is identified as the nobody role' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue