Skip to content

Commit

Permalink
remove spec
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-samuel committed Nov 8, 2024
1 parent 396e4c5 commit e7f22e1
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions spec/controllers/ops_controller/settings/rbac_roles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7f22e1

Please sign in to comment.