summaryrefslogtreecommitdiff
path: root/spec/serializers/runner_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/runner_entity_spec.rb')
-rw-r--r--spec/serializers/runner_entity_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/runner_entity_spec.rb b/spec/serializers/runner_entity_spec.rb
index 84c7d1720e2..e864b52c0f2 100644
--- a/spec/serializers/runner_entity_spec.rb
+++ b/spec/serializers/runner_entity_spec.rb
@@ -7,7 +7,7 @@ RSpec.describe RunnerEntity do
let(:runner) { create(:ci_runner, :project, projects: [project]) }
let(:entity) { described_class.new(runner, request: request, current_user: user) }
let(:request) { double('request') }
- let(:user) { create(:admin) }
+ let(:user) { project.owner }
before do
allow(request).to receive(:current_user).and_return(user)