Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reload element in nested_elements spec
Browse files Browse the repository at this point in the history
Somehow in Rails 6.1 we need to reload the element in this spec.
tvdeyen committed Sep 12, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
1 parent 39d1901 commit 27024e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/models/alchemy/element_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27024e0

Please sign in to comment.