Assert Two Arrays Have The Same Items With RSpec
it "has the correct values" do
expect(fetch_colors(params).sort).to eq(["blue", "green", "yellow"])
endit "has the correct values" do
expect(fetch_colors(params)).to match_array(["blue", "green", "yellow"])
endLast updated