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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/runner_entity_spec.rb b/spec/serializers/runner_entity_spec.rb
index 439ba2cbca2..ba99d568eba 100644
--- a/spec/serializers/runner_entity_spec.rb
+++ b/spec/serializers/runner_entity_spec.rb
@@ -1,10 +1,10 @@
require 'spec_helper'
describe RunnerEntity do
- let(:runner) { create(:ci_runner, :specific) }
+ let(:project) { create(:project) }
+ let(:runner) { create(:ci_runner, :project, projects: [project]) }
let(:entity) { described_class.new(runner, request: request, current_user: user) }
let(:request) { double('request') }
- let(:project) { create(:project) }
let(:user) { create(:admin) }
before do