summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-18 14:28:47 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-18 14:28:47 +0000
commit1ad946228a50202e51f2fc317b1751f01b126081 (patch)
treefe19d947b25c6d82045d1b6bcf2648c4966f6d4b /spec
parent4c477ed12c62ff013fc9015fc0f3d6188cf689c4 (diff)
parent290e458113c2c5fff6bd265c0b3c16d6ac31fdda (diff)
downloadgitlab-ce-1ad946228a50202e51f2fc317b1751f01b126081.tar.gz
Merge branch 'rails5-fix-deployment-spec' into 'master'
Rails5: fix deployment model spec See merge request gitlab-org/gitlab-ce!22428
Diffstat (limited to 'spec')
-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