Skip to content

Commit

Permalink
Fixes failing test with Rails 6.1 on CI
Browse files Browse the repository at this point in the history
Even though it wasn't failing for me locally, it did fail on CI. This change hopefully fixes it.
  • Loading branch information
robinboening committed Apr 19, 2021
1 parent e4f3ac9 commit 5e0c4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/alchemy/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ module Alchemy
let!(:nested_element) { create(:alchemy_element, parent_element: element, page: page) }

it "returns nested elements" do
expect(subject).to eq([nested_element])
expect(subject).to contain_exactly(nested_element)
end

context "with hidden nested elements" do
Expand All @@ -906,7 +906,7 @@ module Alchemy
end

it "does not include them" do
expect(subject).to eq([nested_element])
expect(subject).to contain_exactly(nested_element)
end
end
end
Expand Down

0 comments on commit 5e0c4d2

Please sign in to comment.