From 51056d340ca0cc6bc50e0e099a1ee33e5226d74b Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Wed, 22 May 2019 09:19:16 +0200 Subject: [PATCH] Save the whole stage instead of the single matches --- spec/factories/stages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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