summaryrefslogtreecommitdiff
path: root/spec/models/deployment_spec.rb
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-10-17 18:46:24 +0200
committerJasper Maes <jaspermaes.jm@gmail.com>2018-10-17 19:02:39 +0200
commit290e458113c2c5fff6bd265c0b3c16d6ac31fdda (patch)
treef4ac1ef358ee39344a22a433f1669c7232017fb3 /spec/models/deployment_spec.rb
parented499b38e2e68e9e7979dfcce93175d8561007a0 (diff)
downloadgitlab-ce-290e458113c2c5fff6bd265c0b3c16d6ac31fdda.tar.gz
Rails5: fix deployment model spec
Diffstat (limited to 'spec/models/deployment_spec.rb')
-rw-r--r--spec/models/deployment_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/deployment_spec.rb b/spec/models/deployment_spec.rb
index 182070781dd..b8364e0cf88 100644
--- a/spec/models/deployment_spec.rb
+++ b/spec/models/deployment_spec.rb
@@ -57,7 +57,7 @@ describe Deployment do
last_deployments = described_class.last_for_environment([staging, production, testing])
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