diff --git a/spec/models/ci/bridge_spec.rb b/spec/models/ci/bridge_spec.rb
index a5366a1a67a90a007158198f5a8f866df397ddbf..1d0c3bb5deecac604d34045aebcc1ec86385a9c2 100644
--- a/spec/models/ci/bridge_spec.rb
+++ b/spec/models/ci/bridge_spec.rb
@@ -3,7 +3,7 @@
 require 'spec_helper'
 
 RSpec.describe Ci::Bridge, feature_category: :continuous_integration do
-  let_it_be(:project, reload: true) { create(:project, :repository, :in_group) }
+  let_it_be(:project, refind: true) { create(:project, :repository, :in_group) }
   let_it_be(:target_project) { create(:project, name: 'project', namespace: create(:namespace, name: 'my')) }
   let_it_be(:pipeline) { create(:ci_pipeline, project: project) }
 
diff --git a/spec/support/shared_examples/ci/deployable_shared_examples.rb b/spec/support/shared_examples/ci/deployable_shared_examples.rb
index 367e939e69c752292b22101cb7ddbf355b4c1d54..75ddc763bc6554a9c3cab7ea07e50d79b92c031e 100644
--- a/spec/support/shared_examples/ci/deployable_shared_examples.rb
+++ b/spec/support/shared_examples/ci/deployable_shared_examples.rb
@@ -51,7 +51,7 @@
     end
 
     context 'when job is older than the latest deployment but succeeded once' do
-      let(:job) { create(factory_type, :success, :with_deployment, pipeline: pipeline, environment: 'production') }
+      let(:job) { create(factory_type, :success, :with_deployment, project: project, pipeline: pipeline, environment: 'production') }
 
       before do
         allow(job.deployment).to receive(:older_than_last_successful_deployment?).and_return(true)