From 536c7bf5dacea1ba7779bb793fe14f61920c23a5 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 2 Jun 2022 15:35:39 +0200 Subject: [PATCH] Add missing exclamation mark to create --- spec/support/time_machine/structure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/time_machine/structure.rb b/spec/support/time_machine/structure.rb index 75e28165..376ec74f 100644 --- a/spec/support/time_machine/structure.rb +++ b/spec/support/time_machine/structure.rb @@ -154,5 +154,5 @@ class ::SubSubBar < ActiveRecord::Base $t.boos = Array.new(2) { |i| ts_eval { Boo.create! name: "boo #{i}" } } $t.moos = Array.new(2) { |i| ts_eval { Moo.create! name: "moo #{i}", boos: $t.boos } } - $t.baz = Baz.create name: 'baz', bar: $t.bar + $t.baz = Baz.create! name: 'baz', bar: $t.bar end