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 Jul 9, 2021
1 parent 9afd643 commit 2f7b264
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 @@ -1008,7 +1008,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 @@ -1017,7 +1017,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 2f7b264

Please sign in to comment.