Update bundle (with newest rubocop version) and fix offenses

This commit is contained in:
Sebastian Serth
2022-01-03 18:11:17 +01:00
parent 57e32611ed
commit ea85519163
93 changed files with 968 additions and 985 deletions

View File

@ -6,7 +6,7 @@ describe ExternalUser do
let(:user) { described_class.create }
it 'validates the presence of a consumer' do
expect(user.errors[:consumer_id]).to be_present
expect(user.errors[:consumer]).to be_present
end
it 'validates the presence of an external ID' do
@ -15,7 +15,7 @@ describe ExternalUser do
describe '#admin?' do
it 'is false' do
expect(FactoryBot.build(:external_user).admin?).to be false
expect(build(:external_user).admin?).to be false
end
end
@ -33,7 +33,7 @@ describe ExternalUser do
describe '#teacher?' do
it 'is false' do
expect(FactoryBot.build(:external_user).teacher?).to be false
expect(build(:external_user).teacher?).to be false
end
end
end