diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-18 14:28:47 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-18 14:28:47 +0000 |
commit | 1ad946228a50202e51f2fc317b1751f01b126081 (patch) | |
tree | fe19d947b25c6d82045d1b6bcf2648c4966f6d4b /spec/models | |
parent | 4c477ed12c62ff013fc9015fc0f3d6188cf689c4 (diff) | |
parent | 290e458113c2c5fff6bd265c0b3c16d6ac31fdda (diff) | |
download | gitlab-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/models')
-rw-r--r-- | spec/models/deployment_spec.rb | 2 |
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 |