Commit 290e4581 authored by Jasper Maes's avatar Jasper Maes

Rails5: fix deployment model spec

parent ed499b38
---
title: 'Rails5: fix deployment model spec'
merge_request: 22428
author: Jasper Maes
type: other
...@@ -57,7 +57,7 @@ describe Deployment do ...@@ -57,7 +57,7 @@ describe Deployment do
last_deployments = described_class.last_for_environment([staging, production, testing]) last_deployments = described_class.last_for_environment([staging, production, testing])
expect(last_deployments.size).to eq(2) expect(last_deployments.size).to eq(2)
expect(last_deployments).to eq(deployments.last(2)) expect(last_deployments).to match_array(deployments.last(2))
end end
end 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