Autofix Rubocop RSpec/ClassCheck (#23685)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user