Use contain_exactly instead of eq

parent fe63ffb8
......@@ -29,14 +29,14 @@ describe Resolvers::DesignManagement::DesignResolver do
context "for a design collection" do
it "returns designs" do
expect(resolve_designs(issue.design_collection, {}, current_user: current_user)).to eq([first_design])
expect(resolve_designs(issue.design_collection, {}, current_user: current_user)).to contain_exactly(first_design)
end
it "returns all designs" do
second_version = create(:design_version)
second_design = create(:design, issue: issue, versions: [second_version])
expect(resolve_designs(issue.design_collection, {}, current_user: current_user)).to eq([first_design, second_design])
expect(resolve_designs(issue.design_collection, {}, current_user: current_user)).to contain_exactly(first_design, second_design)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment