diff --git a/spec/controllers/ops_controller/settings/rbac_roles_spec.rb b/spec/controllers/ops_controller/settings/rbac_roles_spec.rb index 0f5770dfe7b..00e999f45f1 100644 --- a/spec/controllers/ops_controller/settings/rbac_roles_spec.rb +++ b/spec/controllers/ops_controller/settings/rbac_roles_spec.rb @@ -26,33 +26,4 @@ expect(controller.send(:rbac_compact_features, incomplete_set)).to match_array(incomplete_set) end end - - describe '#recurse_sections_and_features' do - context 'special "_tab_all_vm_rules" node' do - it 'yields vm, instance, template and image with *delete' do - expect do |b| - controller.send(:recurse_sections_and_features, '_tab_all_vm_rules', &b) - end.to yield_successive_args( - ['image', include('image_delete')], - ['instance', include('instance_delete')], - ['miq_template', include('miq_template_delete')], - ['vm', include('vm_delete')], - ) - end - end - context '"_tab_conf" feature node' do - it 'yields features including "ems_configuration_show_list"' do - expect do |b| - controller.send(:recurse_sections_and_features, 'ems_configuration', &b) - end.to yield_successive_args(["ems_configuration", include("ems_configuration_show_list")]) - end - end - context '"vm" feature node' do - it 'yields features including "vm_compare"' do - expect do |b| - controller.send(:recurse_sections_and_features, 'vm', &b) - end.to yield_with_args('vm', include('vm_compare')) - end - end - end end