Enable the Lint/UnusedBlockArgument cop

This commit is contained in:
gregoirenovel 2018-12-24 17:53:16 +01:00 committed by Pierre de La Morinerie
parent ddc71cbacf
commit 0596d53ac2
10 changed files with 16 additions and 16 deletions

View file

@ -23,7 +23,7 @@ FactoryBot.define do
end
trait :with_piece_justificative_file do
after(:create) do |champ, evaluator|
after(:create) do |champ, _evaluator|
champ.piece_justificative_file.attach(io: StringIO.new("toto"), filename: "toto.txt", content_type: "text/plain")
end
end
@ -147,7 +147,7 @@ FactoryBot.define do
factory :champ_piece_justificative, class: 'Champs::PieceJustificativeChamp' do
type_de_champ { create(:type_de_champ_piece_justificative) }
after(:create) do |champ, evaluator|
after(:create) do |champ, _evaluator|
champ.piece_justificative_file.attach(io: StringIO.new("toto"), filename: "toto.txt", content_type: "text/plain")
end
end
@ -161,7 +161,7 @@ FactoryBot.define do
association :etablissement, factory: [:etablissement]
value { '44011762001530' }
after(:build) do |champ, evaluator|
after(:build) do |champ, _evaluator|
champ.etablissement.signature = champ.etablissement.sign
end
end