spec/liberty_buildpack/services/mongo_spec.rb
def create_mongo
        runtime_vars_doc = REXML::Document.new('<server></server>')
        obj = Mongo.new('mongo', @config)
        obj.parse_vcap_services(runtime_vars_doc.root, @vcap)
        obj
      end
#---------------------------------------------
# Helper method that creates the Mongo object and calls parse_vcap_services. The runtime_vars.xml is not written to a file
#---------------------------------------------
Helper method that creates the Mongo object and calls parse_vcap_services. The runtime_vars.xml is not written to a file
Helper method that creates the Mongo object and calls parse_vcap_services . The runtime_vars . xml is not written to a file
def create_mongo
        runtime_vars_doc = REXML::Document.new('<server></server>')
        obj = Mongo.new('mongo', @config)
        obj.parse_vcap_services(runtime_vars_doc.root, @vcap)
        obj
      end
def create_mongo runtime_vars_doc = REXML :: Document . new ( '<server></server>' ) obj = Mongo . new ( 'mongo' , @config ) obj . parse_vcap_services ( runtime_vars_doc . root , @vcap ) obj end
Helper method that creates the Mongo object and calls parse_vcap_services.
Helper method that creates the Mongo object and calls parse_vcap_services .