diff --git a/ee/app/views/groups/settings/_duo_features_enabled.html.haml b/ee/app/views/groups/settings/_duo_features_enabled.html.haml index 273b41bcb7e9a40814fa2e7d9a1b9f372ba44494..527a71903a088a1b14f74b2f26f46a9cc88d769e 100644 --- a/ee/app/views/groups/settings/_duo_features_enabled.html.haml +++ b/ee/app/views/groups/settings/_duo_features_enabled.html.haml @@ -1,4 +1,4 @@ -- return unless @group.licensed_feature_available?(:ai_features) +- return unless @group.licensed_ai_features_available? - link = link_to('', help_page_path('user/ai_features'), target: '_blank', rel: 'noopener noreferrer') - duo_features_enabled_locked = cascading_namespace_setting_locked?(:duo_features_enabled, @group) diff --git a/ee/spec/views/groups/settings/_permissions.html.haml_spec.rb b/ee/spec/views/groups/settings/_permissions.html.haml_spec.rb index 95888bd806521cf782ffef83bbd73d29ba0c33b7..b057c3a340082b8a9601665ee39bbd0cfccc807f 100644 --- a/ee/spec/views/groups/settings/_permissions.html.haml_spec.rb +++ b/ee/spec/views/groups/settings/_permissions.html.haml_spec.rb @@ -44,12 +44,12 @@ context 'for duo features enabled' do before do - allow(group).to receive(:licensed_feature_available?).and_call_original + allow(group).to receive(:licensed_ai_features_available?).and_call_original end - context 'when licensed feature is not available' do + context 'when licensed ai features is not available' do it 'renders nothing' do - allow(group).to receive(:licensed_feature_available?).with(:ai_features).and_return(false) + allow(group).to receive(:licensed_ai_features_available?).and_return(false) render @@ -58,9 +58,9 @@ end end - context 'when licensed feature is available' do + context 'when licensed ai features are available' do it 'renders the experiment settings' do - allow(group).to receive(:licensed_feature_available?).with(:ai_features).and_return(true) + allow(group).to receive(:licensed_ai_features_available?).and_return(true) render