Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-10-17 19:46:24 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-10-17 20:02:39 +0300
commit290e458113c2c5fff6bd265c0b3c16d6ac31fdda (patch)
treef4ac1ef358ee39344a22a433f1669c7232017fb3 /spec/models/deployment_spec.rb
parented499b38e2e68e9e7979dfcce93175d8561007a0 (diff)
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