From 0e5c1a89f0b6ecf88fc340194d292fccbde99782 Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Tue, 1 May 2018 13:44:35 +0400 Subject: Fix spec/features/admin/admin_runners_spec.rb + test style improvements --- spec/features/admin/admin_runners_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/features/admin') diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index b0aa2e8b588..3465ccfc423 100644 --- a/spec/features/admin/admin_runners_spec.rb +++ b/spec/features/admin/admin_runners_spec.rb @@ -61,10 +61,10 @@ describe "Admin Runners" do end context 'group runner' do - it 'shows the label and does not show the project count' do - group = create :group - runner = create :ci_runner, groups: [group] + let(:group) { create(:group) } + let!(:runner) { create(:ci_runner, groups: [group], runner_type: :group_type) } + it 'shows the label and does not show the project count' do visit admin_runners_path within "#runner_#{runner.id}" do -- cgit v1.2.3