diff options
-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) |