Commit 7c410c1e authored by Fabio Pitino's avatar Fabio Pitino

Merge branch 'fix-deployment-spec' into 'master'

Use parent strategy for associations in factories - Deployment spec

See merge request gitlab-org/gitlab!41346
parents 576beef1 196ef7d8
......@@ -44,10 +44,14 @@ RSpec.describe Deployment do
describe 'modules' do
it_behaves_like 'AtomicInternalId' do
let_it_be(:project) { create(:project, :repository) }
let_it_be(:deployable) { create(:ci_build, project: project) }
let_it_be(:environment) { create(:environment, project: project) }
let(:internal_id_attribute) { :iid }
let(:instance) { build(:deployment) }
let(:instance) { build(:deployment, deployable: deployable, environment: environment) }
let(:scope) { :project }
let(:scope_attrs) { { project: instance.project } }
let(:scope_attrs) { { project: project } }
let(:usage) { :deployments }
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment