gitlab-org--gitlab-foss/spec/factories/deployments.rb
2016-06-15 12:03:49 +02:00

13 lines
309 B
Ruby

FactoryGirl.define do
factory :deployment, class: Deployment do
sha '97de212e80737a608d939f648d959671fb0a0142'
ref 'master'
tag false
environment factory: :environment
after(:build) do |deployment, evaluator|
deployment.project = deployment.environment.project
end
end
end