Add Style/CollectionMethods to rubocop

This commit is contained in:
Paul Chavard 2019-09-12 11:26:22 +02:00
parent 3f970eee74
commit 3b8d3b7967
37 changed files with 67 additions and 60 deletions

View file

@ -149,12 +149,12 @@ describe AttestationTemplate, type: :model do
context 'and their value in the dossier are not nil' do
before do
dossier.champs
.select { |champ| champ.libelle == 'libelleA' }
.filter { |champ| champ.libelle == 'libelleA' }
.first
.update(value: 'libelle1')
dossier.champs
.select { |champ| champ.libelle == 'libelleB' }
.filter { |champ| champ.libelle == 'libelleB' }
.first
.update(value: 'libelle2')
end