diff --git a/spec/workers/send_pipeline_notification_worker_spec.rb b/spec/workers/send_pipeline_notification_worker_spec.rb
index f03231498a21b64e718bf8dd83aca1108dbd151b..8d358992c7c58e074fade6f6887018536ddc603c 100644
--- a/spec/workers/send_pipeline_notification_worker_spec.rb
+++ b/spec/workers/send_pipeline_notification_worker_spec.rb
@@ -5,7 +5,7 @@ describe SendPipelineNotificationWorker do
     create(:ci_pipeline,
            project: project,
            sha: project.commit('master').sha,
-           user: user,
+           user: pusher,
            status: status)
   end