diff options
Diffstat (limited to 'spec/helpers/clusters_helper_spec.rb')
-rw-r--r-- | spec/helpers/clusters_helper_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/helpers/clusters_helper_spec.rb b/spec/helpers/clusters_helper_spec.rb index dff83005c89..6164f3b5e8d 100644 --- a/spec/helpers/clusters_helper_spec.rb +++ b/spec/helpers/clusters_helper_spec.rb @@ -77,7 +77,15 @@ RSpec.describe ClustersHelper do end it 'displays and ancestor_help_path' do - expect(subject[:ancestor_help_path]).to eq('/help/user/group/clusters/index#cluster-precedence') + expect(subject[:ancestor_help_path]).to eq(help_page_path('user/group/clusters/index', anchor: 'cluster-precedence')) + end + end + + describe '#js_cluster_new' do + subject { helper.js_cluster_new } + + it 'displays a cluster_connect_help_path' do + expect(subject[:cluster_connect_help_path]).to eq(help_page_path('user/project/clusters/add_remove_clusters', anchor: 'add-existing-cluster')) end end |