diff options
Diffstat (limited to 'spec/serializers/runner_entity_spec.rb')
-rw-r--r-- | spec/serializers/runner_entity_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/runner_entity_spec.rb b/spec/serializers/runner_entity_spec.rb index 39cac65c5ac..f34cb794834 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) { project.owner } + let(:user) { project.first_owner } before do allow(request).to receive(:current_user).and_return(user) |