summaryrefslogtreecommitdiff
path: root/spec/factories/deployments.rb
blob: f335a111a7d3f7bba570de03a776d7d73d91be68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FactoryGirl.define do
  factory :deployment, class: Deployment do
    sha '97de212e80737a608d939f648d959671fb0a0142'
    ref 'master'

    environment factory: :environment

    after(:build) do |deployment, evaluator|
      deployment.project = deployment.environment.project
    end
  end
end