diff options
author | Jason Goodman <jgoodman@gitlab.com> | 2019-04-22 12:17:18 -0400 |
---|---|---|
committer | Jason Goodman <jgoodman@gitlab.com> | 2019-04-22 12:17:18 -0400 |
commit | f4aed77ddca2b0cffdbe6fea1e573685a208b0da (patch) | |
tree | 8d13fc082ed38b073b6d8ea319d96a12752eb730 | |
parent | c7c9e11af45a56b6321945e30745bc59fc9333e1 (diff) | |
download | gitlab-ce-issue-42692-deployment-chat-notifications-test-revert.tar.gz |
Revert "Use an actual sha in gitlab-test for the deployment factory"issue-42692-deployment-chat-notifications-test-revert
This reverts commit 0f509085133d8799c6ed75541ea7fb4ded05e8a3.
-rw-r--r-- | spec/factories/deployments.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/data_builder/deployment_spec.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/deployments.rb b/spec/factories/deployments.rb index db438ad32d3..011c98599a3 100644 --- a/spec/factories/deployments.rb +++ b/spec/factories/deployments.rb @@ -1,6 +1,6 @@ FactoryBot.define do factory :deployment, class: Deployment do - sha 'b83d6e391c22777fca1ed3012fce84f633d7fed0' + sha '97de212e80737a608d939f648d959671fb0a0142' ref 'master' tag false user nil diff --git a/spec/lib/gitlab/data_builder/deployment_spec.rb b/spec/lib/gitlab/data_builder/deployment_spec.rb index b89a44e178b..616a1e9ae0b 100644 --- a/spec/lib/gitlab/data_builder/deployment_spec.rb +++ b/spec/lib/gitlab/data_builder/deployment_spec.rb @@ -6,6 +6,7 @@ describe Gitlab::DataBuilder::Deployment do describe '.build' do it 'returns the object kind for a deployment' do deployment = build(:deployment) + allow(deployment).to receive(:commit).and_return(build(:commit)) data = described_class.build(deployment) |