From 216d2574c5a2333989c750078eb4a2f4dcef9e95 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Sun, 12 Sep 2021 20:41:21 +0200 Subject: [PATCH] Reload element in nested_elements spec Somehow in Rails 6.1 we need to reload the element in this spec. --- spec/models/alchemy/element_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/models/alchemy/element_spec.rb b/spec/models/alchemy/element_spec.rb index b156bb21e9..f5a061c4e0 100644 --- a/spec/models/alchemy/element_spec.rb +++ b/spec/models/alchemy/element_spec.rb @@ -1028,6 +1028,7 @@ module Alchemy end it "does not include them" do + element.reload # necessary since Rails 6.1 expect(subject).to contain_exactly(nested_element) end end