diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-25 15:11:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-25 15:11:32 +0300 |
commit | 975eac49924cf0e9c980d970458d14d2ddaa8b55 (patch) | |
tree | fc54fae4690daef41f2e44391fb659c7a4ea82f2 /spec/helpers | |
parent | 326b4d3216d107b40142ee847c06f2c41a1ef220 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/ci/runners_helper_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/helpers/ci/runners_helper_spec.rb b/spec/helpers/ci/runners_helper_spec.rb index 40927d44e24..0f15f8be0a9 100644 --- a/spec/helpers/ci/runners_helper_spec.rb +++ b/spec/helpers/ci/runners_helper_spec.rb @@ -88,6 +88,19 @@ RSpec.describe Ci::RunnersHelper do end end + describe '#group_runners_data_attributes' do + let(:group) { create(:group) } + + it 'returns group data to render a runner list' do + data = group_runners_data_attributes(group) + + expect(data[:registration_token]).to eq(group.runners_token) + expect(data[:group_id]).to eq(group.id) + expect(data[:group_full_path]).to eq(group.full_path) + expect(data[:runner_install_help_page]).to eq('https://docs.gitlab.com/runner/install/') + end + end + describe '#toggle_shared_runners_settings_data' do let_it_be(:group) { create(:group) } |