Don’t use unless

This commit is contained in:
gregoirenovel 2018-01-11 19:04:39 +01:00
parent 8c73851cec
commit 7c34807f46
90 changed files with 164 additions and 157 deletions

View file

@ -3,7 +3,7 @@ FactoryGirl.define do
body 'plop'
before(:create) do |commentaire, _evaluator|
unless commentaire.dossier
if !commentaire.dossier
commentaire.dossier = create :dossier
end
end