spec/rest_helper.rb
Deletes the active database and unallocates ORD and DB
Deletes the active database and unallocates ORD and DB
Deletes the active database and unallocates ORD and DB
def destroy_database
  unless defined?(ORD) == 'constant' 
    Object.send :const_set, :ORD,     ActiveOrient::OrientDB.new(  preallocate:  false)
  end  
  ORD.delete_database database: ActiveOrient.database
  ActiveOrient::Model.allocated_classes = {}
  Object.send :remove_const, :ORD 
  Object.send( :remove_const, :DB ) if defined?(DB) == 'constant'
end
def destroy_database unless defined? ( ORD ) == 'constant' Object . send :const_set , :ORD , ActiveOrient :: OrientDB . new ( preallocate : false ) end ORD . delete_database database : ActiveOrient . database ActiveOrient :: Model . allocated_classes = { } Object . send :remove_const , :ORD Object . send ( :remove_const , :DB ) if defined? ( DB ) == 'constant' end
Deletes the active database and unallocates ORD and DB
Deletes the active database and unallocates ORD and DB