You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: automation_helper.rb
    path of file: ./repos/manageiq/spec/support
    
    the code of the file until where you have to start completion: module Spec
  module Support
    module AutomationHelper
      def assert_method_executed(uri, value, user)
        ws = MiqAeEngine.instantiate(uri, user)
        expect(ws).not_to be_nil
        roots = ws.r
    
      def send_ae_request_via_queue(args, timeout = nil)
        queue_args = {:role        => 'automate',
                      :class_name  => 'MiqAeEngine',
                      :method_name => 'deliver',
                      :args        => [args]}
        queue_args.merge!(:msg_timeout => timeout) if timeout
        MiqQueue.put(queue_args)
      end