diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 11:43:02 +0300 |
commit | d9ab72d6080f594d0b3cae15f14b3ef2c6c638cb (patch) | |
tree | 2341ef426af70ad1e289c38036737e04b0aa5007 /spec/helpers/projects | |
parent | d6e514dd13db8947884cd58fe2a9c2a063400a9b (diff) |
Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42
Diffstat (limited to 'spec/helpers/projects')
-rw-r--r-- | spec/helpers/projects/cluster_agents_helper_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/helpers/projects/cluster_agents_helper_spec.rb b/spec/helpers/projects/cluster_agents_helper_spec.rb new file mode 100644 index 00000000000..2935a74586b --- /dev/null +++ b/spec/helpers/projects/cluster_agents_helper_spec.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Projects::ClusterAgentsHelper do + describe '#js_cluster_agent_details_data' do + let_it_be(:project) { create(:project) } + + let(:agent_name) { 'agent-name' } + + subject { helper.js_cluster_agent_details_data(agent_name, project) } + + it 'returns name' do + expect(subject[:agent_name]).to eq(agent_name) + end + + it 'returns project path' do + expect(subject[:project_path]).to eq(project.full_path) + end + end +end |