Don’t use unless
This commit is contained in:
parent
8c73851cec
commit
7c34807f46
90 changed files with 164 additions and 157 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue