Commit 62e988aa authored by Stan Hu's avatar Stan Hu

Merge branch 'da-fix-broken-master' into 'master'

Fix spec for Resolvers::DesignManagement::DesignResolver

See merge request gitlab-org/gitlab!19260
parents dd78e9b5 bbbae14b
......@@ -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