Skip to content

Commit

Permalink
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.
  • Loading branch information
tvdeyen committed Sep 12, 2021
1 parent b6584ee commit f43f0b4
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
Expand Up @@ -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
Expand Down

0 comments on commit f43f0b4

Please sign in to comment.