Skip to content

Commit

Permalink
Dont specify order in api pages controller spec
Browse files Browse the repository at this point in the history
We cant now it
  • Loading branch information
tvdeyen committed Mar 14, 2022
1 parent 12cba54 commit b172beb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/controllers/alchemy/api/pages_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ module Alchemy
context "as guest user" do
it "only returns pages for current site" do
get :index, format: :json
expect(result["pages"].map { |r| r["id"] }).to eq([page.parent_id, page.id])
expect(result["pages"].map { |r| r["id"] }).to match_array([
page.parent_id,
page.id,
])
end
end

Expand All @@ -100,7 +103,7 @@ module Alchemy

it "returns all pages" do
get :index, format: :json
expect(result["pages"].map { |r| r["id"] }).to eq([
expect(result["pages"].map { |r| r["id"] }).to match_array([
page.parent_id,
page.id,
site_2_page.parent_id,
Expand Down

0 comments on commit b172beb

Please sign in to comment.