Add Style/CollectionMethods to rubocop
This commit is contained in:
parent
3f970eee74
commit
3b8d3b7967
37 changed files with 67 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue