diff --git a/spec/factories/stages.rb b/spec/factories/stages.rb index 0bbc826..b5736cd 100644 --- a/spec/factories/stages.rb +++ b/spec/factories/stages.rb @@ -26,8 +26,8 @@ FactoryBot.define do evaluator.match_count == -1 ? 2**stage.level : evaluator.match_count) stage.matches.each_with_index do |match, i| match.position = i - match.save! end + stage.save! end end end