diff --git a/test/controllers/api/v2/hosts_bulk_actions_controller_extensions_test.rb b/test/controllers/api/v2/hosts_bulk_actions_controller_extensions_test.rb index e2fbea4fb6f..fe0856ffbd1 100644 --- a/test/controllers/api/v2/hosts_bulk_actions_controller_extensions_test.rb +++ b/test/controllers/api/v2/hosts_bulk_actions_controller_extensions_test.rb @@ -11,7 +11,11 @@ def setup def test_bulk_destroy Katello::RegistrationManager.expects(:unregister_host).twice - delete :bulk_destroy, params: { :search => "id ^ (#{[@host1.id, @host2.id].join(',')})" } + delete :bulk_destroy, params: { + :search => "id ^ (#{[@host1.id, @host2.id].join(',')})", + :skip_scope_hash => true, + } + assert_response :success end end