summaryrefslogtreecommitdiff
path: root/spec/features/admin
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-01 13:44:35 +0400
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-01 13:44:35 +0400
commit0e5c1a89f0b6ecf88fc340194d292fccbde99782 (patch)
tree62db4af97682b236746716718322dd81f1f23924 /spec/features/admin
parentb7b823246602d6821f1773274ee6017c9f46e93f (diff)
downloadgitlab-ce-0e5c1a89f0b6ecf88fc340194d292fccbde99782.tar.gz
Fix spec/features/admin/admin_runners_spec.rb + test style improvements
Diffstat (limited to 'spec/features/admin')
-rw-r--r--spec/features/admin/admin_runners_spec.rb6
1 files changed, 3 insertions, 3 deletions
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